misc: kxtf9: move to unlocked_ioctl
authorErik Gilling <konkers@android.com>
Tue, 31 Aug 2010 01:16:46 +0000 (18:16 -0700)
committerColin Cross <ccross@android.com>
Thu, 7 Oct 2010 00:03:31 +0000 (17:03 -0700)
Change-Id: Ia881796d95cf93a4f685114a2145810730d3caae

drivers/misc/kxtf9.c

index 17efe994e514de26414e6005442489ed3e6f277a..6eaa64abf0438ca901ef1f59a644bf2fa650b24d 100755 (executable)
@@ -695,8 +695,8 @@ static int kxtf9_misc_open(struct inode *inode, struct file *file)
        return 0;
 }
 
-static int kxtf9_misc_ioctl(struct inode *inode, struct file *file,
-                               unsigned int cmd, unsigned long arg)
+static long kxtf9_misc_ioctl(struct file *file,
+                            unsigned int cmd, unsigned long arg)
 {
        void __user *argp = (void __user *)arg;
        u8 buf[4];
@@ -903,7 +903,7 @@ static int kxtf9_misc_ioctl(struct inode *inode, struct file *file,
 static const struct file_operations kxtf9_misc_fops = {
        .owner = THIS_MODULE,
        .open = kxtf9_misc_open,
-       .ioctl = kxtf9_misc_ioctl,
+       .unlocked_ioctl = kxtf9_misc_ioctl,
 };
 
 static struct miscdevice kxtf9_misc_device = {