Commit 97718390 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Frederic Weisbecker

coda/psdev: Remove BKL from ioctl function

The ioctl function returns constant results, so it obviously
does not need the BKL and can be converted to unlocked_ioctl.
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarFrederic Weisbecker <fweisbec@gmail.com>
parent d5f1d54c
...@@ -73,8 +73,7 @@ static unsigned int coda_psdev_poll(struct file *file, poll_table * wait) ...@@ -73,8 +73,7 @@ static unsigned int coda_psdev_poll(struct file *file, poll_table * wait)
return mask; return mask;
} }
static int coda_psdev_ioctl(struct inode * inode, struct file * filp, static long coda_psdev_ioctl(struct file * filp, unsigned int cmd, unsigned long arg)
unsigned int cmd, unsigned long arg)
{ {
unsigned int data; unsigned int data;
...@@ -344,7 +343,7 @@ static const struct file_operations coda_psdev_fops = { ...@@ -344,7 +343,7 @@ static const struct file_operations coda_psdev_fops = {
.read = coda_psdev_read, .read = coda_psdev_read,
.write = coda_psdev_write, .write = coda_psdev_write,
.poll = coda_psdev_poll, .poll = coda_psdev_poll,
.ioctl = coda_psdev_ioctl, .unlocked_ioctl = coda_psdev_ioctl,
.open = coda_psdev_open, .open = coda_psdev_open,
.release = coda_psdev_release, .release = coda_psdev_release,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment