diff options
author | Tejun Heo <tj@kernel.org> | 2010-12-24 09:59:06 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2010-12-24 09:59:06 -0500 |
commit | 0ead5c86ac4c9903da93c76716135bc29d9cd83b (patch) | |
tree | ecb9ec44366c17a77e2c0cb20e75574e5e1b8b29 /drivers/cdrom | |
parent | 8aa0f413848708bca329c52358ae7a1a0e395b4e (diff) |
gdrom: don't use flush_scheduled_work()
flush_scheduled_work() is deprecated and scheduled to be removed.
Directly flush work on removal instead.
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/cdrom')
-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); |