]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/sbus/char/envctrl.c
remove twl4030-pwrirq.c
[linux-2.6-omap-h63xx.git] / drivers / sbus / char / envctrl.c
index dadabef116b60ea75d935b37254ca53eeff2e09a..a408402426f853bf78a21406c975fbf484c0ca8a 100644 (file)
@@ -27,6 +27,7 @@
 #include <linux/miscdevice.h>
 #include <linux/kmod.h>
 #include <linux/reboot.h>
+#include <linux/smp_lock.h>
 
 #include <asm/ebus.h>
 #include <asm/uaccess.h>
@@ -694,6 +695,7 @@ envctrl_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
 static int
 envctrl_open(struct inode *inode, struct file *file)
 {
+       cycle_kernel_lock();
        file->private_data = NULL;
        return 0;
 }