diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/block/pktcdvd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c index 1a1fa3ccb913..82ccad0a7f1a 100644 --- a/drivers/block/pktcdvd.c +++ b/drivers/block/pktcdvd.c | |||
@@ -2406,7 +2406,7 @@ static int pkt_ioctl(struct inode *inode, struct file *file, unsigned int cmd, u | |||
2406 | case CDROM_LAST_WRITTEN: | 2406 | case CDROM_LAST_WRITTEN: |
2407 | case CDROM_SEND_PACKET: | 2407 | case CDROM_SEND_PACKET: |
2408 | case SCSI_IOCTL_SEND_COMMAND: | 2408 | case SCSI_IOCTL_SEND_COMMAND: |
2409 | return ioctl_by_bdev(pd->bdev, cmd, arg); | 2409 | return blkdev_ioctl(pd->bdev->bd_inode, file, cmd, arg); |
2410 | 2410 | ||
2411 | case CDROMEJECT: | 2411 | case CDROMEJECT: |
2412 | /* | 2412 | /* |
@@ -2414,7 +2414,7 @@ static int pkt_ioctl(struct inode *inode, struct file *file, unsigned int cmd, u | |||
2414 | * have to unlock it or else the eject command fails. | 2414 | * have to unlock it or else the eject command fails. |
2415 | */ | 2415 | */ |
2416 | pkt_lock_door(pd, 0); | 2416 | pkt_lock_door(pd, 0); |
2417 | return ioctl_by_bdev(pd->bdev, cmd, arg); | 2417 | return blkdev_ioctl(pd->bdev->bd_inode, file, cmd, arg); |
2418 | 2418 | ||
2419 | default: | 2419 | default: |
2420 | printk("pktcdvd: Unknown ioctl for %s (%x)\n", pd->name, cmd); | 2420 | printk("pktcdvd: Unknown ioctl for %s (%x)\n", pd->name, cmd); |