vflash: fix for v2.6.36
author黄涛 <huangtao@rock-chips.com>
Mon, 1 Aug 2011 03:20:38 +0000 (11:20 +0800)
committer黄涛 <huangtao@rock-chips.com>
Mon, 1 Aug 2011 03:20:38 +0000 (11:20 +0800)
drivers/bluetooth/vflash.c

index 746c2f0b4940738363eaebe1fa46106752eafd93..44070a74b352c434180a62bb741f48bb7e5a7cc6 100755 (executable)
@@ -14,6 +14,7 @@
 #include <linux/miscdevice.h>\r
 #include <linux/fs.h>\r
 #include <linux/platform_device.h>\r
+#include <linux/slab.h>\r
 #include <asm/uaccess.h>\r
 \r
 #if 0\r
@@ -123,7 +124,7 @@ static int vflash_release(struct inode *inode, struct file *file)
 \r
 static const struct file_operations vflash_fops = {\r
        .owner          = THIS_MODULE,\r
-       .ioctl          = vflash_ioctl,\r
+       .unlocked_ioctl = vflash_ioctl,\r
        .open           = vflash_open,\r
        .release        = vflash_release,\r
 };\r