patch-2.3.32 linux/drivers/block/amiflop.c
Next file: linux/drivers/block/ataflop.c
Previous file: linux/drivers/block/acsi.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Sun Dec 12 23:00:35 1999
- Orig file:
v2.3.31/linux/drivers/block/amiflop.c
- Orig date:
Thu Nov 11 20:11:32 1999
diff -u --recursive --new-file v2.3.31/linux/drivers/block/amiflop.c linux/drivers/block/amiflop.c
@@ -1484,7 +1484,7 @@
goto repeat;
}
-static void do_fd_request(void)
+static void do_fd_request(request_queue_t * q)
{
redo_fd_request();
}
@@ -1869,7 +1869,7 @@
post_write_timer.data = 0;
post_write_timer.function = post_write;
- blk_dev[MAJOR_NR].request_fn = DEVICE_REQUEST;
+ blk_init_queue(BLK_DEFAULT_QUEUE(MAJOR_NR), DEVICE_REQUEST);
blksize_size[MAJOR_NR] = floppy_blocksizes;
blk_size[MAJOR_NR] = floppy_sizes;
@@ -1911,7 +1911,7 @@
amiga_chip_free(raw_buf);
blk_size[MAJOR_NR] = NULL;
blksize_size[MAJOR_NR] = NULL;
- blk_dev[MAJOR_NR].request_fn = NULL;
+ blk_cleanup_queue(BLK_DEFAULT_QUEUE(MAJOR_NR));
unregister_blkdev(MAJOR_NR, "fd");
}
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)