} while ((ST0 & 0x83) != UNIT(current_drive) && inr == 2
&& max_sensei);
}
- if (!handler) {
+ if (handler)
+ schedule_bh(handler);
+ else
FDCS->reset = 1;
- return IRQ_NONE;
- }
- schedule_bh(handler);
is_alive("normal interrupt end");
/* FIXME! Was it really for us? */
int *var;
int def_param;
int param2;
-} config_params[] __initdata = {
+} config_params[] = {
{"allowed_drive_mask", NULL, &allowed_drive_mask, 0xff, 0}, /* obsolete */
{"all_drives", NULL, &allowed_drive_mask, 0xff, 0}, /* obsolete */
{"asus_pci", NULL, &allowed_drive_mask, 0x33, 0},
}
use_virtual_dma = can_use_virtual_dma & 1;
-#if defined(CONFIG_PPC64)
- if (check_legacy_ioport(FDC1)) {
- del_timer(&fd_timeout);
- err = -ENODEV;
- goto out_unreg_region;
- }
-#endif
fdc_state[0].address = FDC1;
if (fdc_state[0].address == -1) {
del_timer(&fd_timeout);
floppy_track_buffer = NULL;
max_buffer_sectors = 0;
}
- /*
- * Small 10 msec delay to let through any interrupt that
- * initialization might have triggered, to not
- * confuse detection:
- */
- msleep(10);
for (i = 0; i < N_FDC; i++) {
fdc = i;
wait_for_completion(&device_release);
}
-module_param(floppy, charp, 0);
-module_param(FLOPPY_IRQ, int, 0);
-module_param(FLOPPY_DMA, int, 0);
+MODULE_PARM(floppy, "s");
+MODULE_PARM(FLOPPY_IRQ, "i");
+MODULE_PARM(FLOPPY_DMA, "i");
MODULE_AUTHOR("Alain L. Knaff");
MODULE_SUPPORTED_DEVICE("fd");
MODULE_LICENSE("GPL");