diff options
Diffstat (limited to 'drivers/ide/ide-cd.c')
-rw-r--r-- | drivers/ide/ide-cd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c index 396000208f81..fe5aefbf8339 100644 --- a/drivers/ide/ide-cd.c +++ b/drivers/ide/ide-cd.c | |||
@@ -2032,9 +2032,8 @@ static void ide_cd_release(struct kref *kref) | |||
2032 | 2032 | ||
2033 | kfree(info->buffer); | 2033 | kfree(info->buffer); |
2034 | kfree(info->toc); | 2034 | kfree(info->toc); |
2035 | if (devinfo->handle == drive && unregister_cdrom(devinfo)) | 2035 | if (devinfo->handle == drive) |
2036 | printk(KERN_ERR "%s: %s failed to unregister device from the cdrom " | 2036 | unregister_cdrom(devinfo); |
2037 | "driver.\n", __FUNCTION__, drive->name); | ||
2038 | drive->dsc_overlap = 0; | 2037 | drive->dsc_overlap = 0; |
2039 | drive->driver_data = NULL; | 2038 | drive->driver_data = NULL; |
2040 | blk_queue_prep_rq(drive->queue, NULL); | 2039 | blk_queue_prep_rq(drive->queue, NULL); |