summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavier Martinez Canillas <martinez.javier@gmail.com>2011-01-03 14:47:54 +0100
committerJavier Martinez Canillas <martinez.javier@gmail.com>2011-01-08 01:52:02 +0100
commit2733750538721f5e0703a1c4fc6abf0d0ee2c33f (patch)
tree87b6ef5f57c18a12d3c1513f25473e7a90fb9d26
parent07a783b2f98076e4961bb79a429b6fcd3b9acf24 (diff)
downloadldd3-2733750538721f5e0703a1c4fc6abf0d0ee2c33f.tar.gz
scullc: BKL ioctl pushdown API change
-rw-r--r--scullc/main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/scullc/main.c b/scullc/main.c
index 5769f1a..814db02 100644
--- a/scullc/main.c
+++ b/scullc/main.c
@@ -271,8 +271,7 @@ ssize_t scullc_write (struct file *filp, const char __user *buf, size_t count,
* The ioctl() implementation
*/
-int scullc_ioctl (struct inode *inode, struct file *filp,
- unsigned int cmd, unsigned long arg)
+long scullc_ioctl (struct file *filp, unsigned int cmd, unsigned long arg)
{
int err = 0, ret = 0, tmp;
@@ -475,7 +474,7 @@ struct file_operations scullc_fops = {
.llseek = scullc_llseek,
.read = scullc_read,
.write = scullc_write,
- .ioctl = scullc_ioctl,
+ .unlocked_ioctl = scullc_ioctl,
.open = scullc_open,
.release = scullc_release,
.aio_read = scullc_aio_read,