diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2008-03-26 07:09:02 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-04-21 03:50:08 -0400 |
commit | 0a0c4114df4a6903bccb65b06cabb6ddc968f877 (patch) | |
tree | bec7598da3593bc32019fb1f1ed4617769e108e7 /drivers/cdrom/gdrom.c | |
parent | 7fd097d42b90afadae4867db5d580bcd7b3b596d (diff) |
cdrom: make unregister_cdrom() return void
Now unregister_cdrom() always returns 0.
Make it return void and update all callers that check the return value.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Adrian McMenamin <adrian@mcmen.demon.co.uk>
Cc: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
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 = { |