|
@@ -4250,7 +4250,7 @@ static int __init floppy_init(void)
|
|
use_virtual_dma = can_use_virtual_dma & 1;
|
|
use_virtual_dma = can_use_virtual_dma & 1;
|
|
fdc_state[0].address = FDC1;
|
|
fdc_state[0].address = FDC1;
|
|
if (fdc_state[0].address == -1) {
|
|
if (fdc_state[0].address == -1) {
|
|
- del_timer(&fd_timeout);
|
|
|
|
|
|
+ del_timer_sync(&fd_timeout);
|
|
err = -ENODEV;
|
|
err = -ENODEV;
|
|
goto out_unreg_region;
|
|
goto out_unreg_region;
|
|
}
|
|
}
|
|
@@ -4261,7 +4261,7 @@ static int __init floppy_init(void)
|
|
fdc = 0; /* reset fdc in case of unexpected interrupt */
|
|
fdc = 0; /* reset fdc in case of unexpected interrupt */
|
|
err = floppy_grab_irq_and_dma();
|
|
err = floppy_grab_irq_and_dma();
|
|
if (err) {
|
|
if (err) {
|
|
- del_timer(&fd_timeout);
|
|
|
|
|
|
+ del_timer_sync(&fd_timeout);
|
|
err = -EBUSY;
|
|
err = -EBUSY;
|
|
goto out_unreg_region;
|
|
goto out_unreg_region;
|
|
}
|
|
}
|
|
@@ -4318,7 +4318,7 @@ static int __init floppy_init(void)
|
|
user_reset_fdc(-1, FD_RESET_ALWAYS, false);
|
|
user_reset_fdc(-1, FD_RESET_ALWAYS, false);
|
|
}
|
|
}
|
|
fdc = 0;
|
|
fdc = 0;
|
|
- del_timer(&fd_timeout);
|
|
|
|
|
|
+ del_timer_sync(&fd_timeout);
|
|
current_drive = 0;
|
|
current_drive = 0;
|
|
initialized = true;
|
|
initialized = true;
|
|
if (have_no_fdc) {
|
|
if (have_no_fdc) {
|
|
@@ -4368,7 +4368,7 @@ out_unreg_blkdev:
|
|
unregister_blkdev(FLOPPY_MAJOR, "fd");
|
|
unregister_blkdev(FLOPPY_MAJOR, "fd");
|
|
out_put_disk:
|
|
out_put_disk:
|
|
while (dr--) {
|
|
while (dr--) {
|
|
- del_timer(&motor_off_timer[dr]);
|
|
|
|
|
|
+ del_timer_sync(&motor_off_timer[dr]);
|
|
if (disks[dr]->queue)
|
|
if (disks[dr]->queue)
|
|
blk_cleanup_queue(disks[dr]->queue);
|
|
blk_cleanup_queue(disks[dr]->queue);
|
|
put_disk(disks[dr]);
|
|
put_disk(disks[dr]);
|