Blackfin: coreb: switched to unlocked_ioctl
authorMike Frysinger <vapier@gentoo.org>
Tue, 13 Oct 2009 12:50:05 +0000 (12:50 +0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 15 Dec 2009 05:14:21 +0000 (00:14 -0500)
We don't need the BKL and now people will stop looking at this.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/mach-bf561/coreb.c

index 1e60a92..deb2271 100644 (file)
@@ -22,8 +22,8 @@
 #define CMD_COREB_STOP         3
 #define CMD_COREB_RESET                4
 
-static int
-coreb_ioctl(struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg)
+static long
+coreb_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
 {
        int ret = 0;
 
@@ -49,8 +49,8 @@ coreb_ioctl(struct inode *inode, struct file *file, unsigned int cmd, unsigned l
 }
 
 static const struct file_operations coreb_fops = {
-       .owner   = THIS_MODULE,
-       .ioctl   = coreb_ioctl,
+       .owner          = THIS_MODULE,
+       .unlocked_ioctl = coreb_ioctl,
 };
 
 static struct miscdevice coreb_dev = {