X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fblock%2Fxd.c;h=64b496fce98bb2a19fd17eb22ef5a192f67ae7bb;hb=b8f6ec2e61f650fd1a316a207a00965bcb8805d4;hp=624d30f7da3fc0ba125de8c46b5f9ec8d1f4efc8;hpb=715dad5992b1466320c1ac674db46297e57acf21;p=linux-2.6-omap-h63xx.git diff --git a/drivers/block/xd.c b/drivers/block/xd.c index 624d30f7da3..64b496fce98 100644 --- a/drivers/block/xd.c +++ b/drivers/block/xd.c @@ -132,7 +132,7 @@ static int xd_getgeo(struct block_device *bdev, struct hd_geometry *geo); static struct block_device_operations xd_fops = { .owner = THIS_MODULE, - .ioctl = xd_ioctl, + .locked_ioctl = xd_ioctl, .getgeo = xd_getgeo, }; static DECLARE_WAIT_QUEUE_HEAD(xd_wait_int); @@ -343,7 +343,7 @@ static int xd_getgeo(struct block_device *bdev, struct hd_geometry *geo) } /* xd_ioctl: handle device ioctl's */ -static int xd_ioctl (struct inode *inode,struct file *file,u_int cmd,u_long arg) +static int xd_ioctl(struct block_device *bdev, fmode_t mode, u_int cmd, u_long arg) { switch (cmd) { case HDIO_SET_DMA: