patch-2.3.32 linux/drivers/block/floppy.c
Next file: linux/drivers/block/hd.c
Previous file: linux/drivers/block/cpqarray.c
Back to the patch index
Back to the overall index
- Lines: 45
- Date:
Sun Dec 12 23:00:34 1999
- Orig file:
v2.3.31/linux/drivers/block/floppy.c
- Orig date:
Tue Nov 23 22:42:20 1999
diff -u --recursive --new-file v2.3.31/linux/drivers/block/floppy.c linux/drivers/block/floppy.c
@@ -2930,7 +2930,7 @@
schedule_bh( (void *)(void *) redo_fd_request);
}
-static void do_fd_request(void)
+static void do_fd_request(request_queue_t * q)
{
if(usage_count == 0) {
printk("warning: usage count=0, CURRENT=%p exiting\n", CURRENT);
@@ -4130,7 +4130,7 @@
blk_size[MAJOR_NR] = floppy_sizes;
blksize_size[MAJOR_NR] = floppy_blocksizes;
- blk_dev[MAJOR_NR].request_fn = DEVICE_REQUEST;
+ blk_init_queue(BLK_DEFAULT_QUEUE(MAJOR_NR), DEVICE_REQUEST);
reschedule_timeout(MAXTIMEOUT, "floppy init", MAXTIMEOUT);
config_types();
@@ -4159,7 +4159,7 @@
fdc = 0; /* reset fdc in case of unexpected interrupt */
if (floppy_grab_irq_and_dma()){
del_timer(&fd_timeout);
- blk_dev[MAJOR_NR].request_fn = NULL;
+ blk_cleanup_queue(BLK_DEFAULT_QUEUE(MAJOR_NR));
unregister_blkdev(MAJOR_NR,"fd");
del_timer(&fd_timeout);
return -EBUSY;
@@ -4225,7 +4225,7 @@
schedule();
if (usage_count)
floppy_release_irq_and_dma();
- blk_dev[MAJOR_NR].request_fn = NULL;
+ blk_cleanup_queue(BLK_DEFAULT_QUEUE(MAJOR_NR));
unregister_blkdev(MAJOR_NR,"fd");
}
return have_no_fdc;
@@ -4447,7 +4447,7 @@
unregister_blkdev(MAJOR_NR, "fd");
- blk_dev[MAJOR_NR].request_fn = 0;
+ blk_cleanup_queue(BLK_DEFAULT_QUEUE(MAJOR_NR));
/* eject disk, if any */
dummy = fd_eject(0);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)