diff options
Diffstat (limited to 'drivers/cdrom/gdrom.c')
-rw-r--r-- | drivers/cdrom/gdrom.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/cdrom/gdrom.c b/drivers/cdrom/gdrom.c index 4e2bbcccc064..71ec426ecffc 100644 --- a/drivers/cdrom/gdrom.c +++ b/drivers/cdrom/gdrom.c | |||
@@ -827,7 +827,9 @@ static int __devexit remove_gdrom(struct platform_device *devptr) | |||
827 | del_gendisk(gd.disk); | 827 | del_gendisk(gd.disk); |
828 | if (gdrom_major) | 828 | if (gdrom_major) |
829 | unregister_blkdev(gdrom_major, GDROM_DEV_NAME); | 829 | unregister_blkdev(gdrom_major, GDROM_DEV_NAME); |
830 | return unregister_cdrom(gd.cd_info); | 830 | unregister_cdrom(gd.cd_info); |
831 | |||
832 | return 0; | ||
831 | } | 833 | } |
832 | 834 | ||
833 | static struct platform_driver gdrom_driver = { | 835 | static struct platform_driver gdrom_driver = { |