diff options
Diffstat (limited to 'drivers/cdrom/gdrom.c')
-rw-r--r-- | drivers/cdrom/gdrom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cdrom/gdrom.c b/drivers/cdrom/gdrom.c index de65915308fb..64a21461c408 100644 --- a/drivers/cdrom/gdrom.c +++ b/drivers/cdrom/gdrom.c | |||
@@ -837,7 +837,7 @@ probe_fail_no_mem: | |||
837 | 837 | ||
838 | static int __devexit remove_gdrom(struct platform_device *devptr) | 838 | static int __devexit remove_gdrom(struct platform_device *devptr) |
839 | { | 839 | { |
840 | flush_scheduled_work(); | 840 | flush_work_sync(&work); |
841 | blk_cleanup_queue(gd.gdrom_rq); | 841 | blk_cleanup_queue(gd.gdrom_rq); |
842 | free_irq(HW_EVENT_GDROM_CMD, &gd); | 842 | free_irq(HW_EVENT_GDROM_CMD, &gd); |
843 | free_irq(HW_EVENT_GDROM_DMA, &gd); | 843 | free_irq(HW_EVENT_GDROM_DMA, &gd); |