aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/block/ioctl.c2
-rw-r--r--drivers/char/raw.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/drivers/block/ioctl.c b/drivers/block/ioctl.c
index 5e03f5157ef9..6d7bcc9da9e7 100644
--- a/drivers/block/ioctl.c
+++ b/drivers/block/ioctl.c
@@ -237,3 +237,5 @@ long compat_blkdev_ioctl(struct file *file, unsigned cmd, unsigned long arg)
237 } 237 }
238 return ret; 238 return ret;
239} 239}
240
241EXPORT_SYMBOL_GPL(blkdev_ioctl);
diff --git a/drivers/char/raw.c b/drivers/char/raw.c
index a2e33ec79615..131465e8de5a 100644
--- a/drivers/char/raw.c
+++ b/drivers/char/raw.c
@@ -122,7 +122,7 @@ raw_ioctl(struct inode *inode, struct file *filp,
122{ 122{
123 struct block_device *bdev = filp->private_data; 123 struct block_device *bdev = filp->private_data;
124 124
125 return ioctl_by_bdev(bdev, command, arg); 125 return blkdev_ioctl(bdev->bd_inode, filp, command, arg);
126} 126}
127 127
128static void bind_device(struct raw_config_request *rq) 128static void bind_device(struct raw_config_request *rq)