diff options
Diffstat (limited to 'drivers/cdrom/viocd.c')
-rw-r--r-- | drivers/cdrom/viocd.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/cdrom/viocd.c b/drivers/cdrom/viocd.c index cac06bc1754b..b74b6c2768a8 100644 --- a/drivers/cdrom/viocd.c +++ b/drivers/cdrom/viocd.c | |||
@@ -650,10 +650,7 @@ static int viocd_remove(struct vio_dev *vdev) | |||
650 | { | 650 | { |
651 | struct disk_info *d = &viocd_diskinfo[vdev->unit_address]; | 651 | struct disk_info *d = &viocd_diskinfo[vdev->unit_address]; |
652 | 652 | ||
653 | if (unregister_cdrom(&d->viocd_info) != 0) | 653 | unregister_cdrom(&d->viocd_info); |
654 | printk(VIOCD_KERN_WARNING | ||
655 | "Cannot unregister viocd CD-ROM %s!\n", | ||
656 | d->viocd_info.name); | ||
657 | del_gendisk(d->viocd_disk); | 654 | del_gendisk(d->viocd_disk); |
658 | blk_cleanup_queue(d->viocd_disk->queue); | 655 | blk_cleanup_queue(d->viocd_disk->queue); |
659 | put_disk(d->viocd_disk); | 656 | put_disk(d->viocd_disk); |