patch-2.3.32 linux/drivers/ap1000/ap.c
Next file: linux/drivers/ap1000/ddv.c
Previous file: linux/drivers/acorn/scsi/powertec.c
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Sun Dec 12 22:58:00 1999
- Orig file:
v2.3.31/linux/drivers/ap1000/ap.c
- Orig date:
Sat May 15 15:05:35 1999
diff -u --recursive --new-file v2.3.31/linux/drivers/ap1000/ap.c linux/drivers/ap1000/ap.c
@@ -53,7 +53,7 @@
MOD_DEC_USE_COUNT;
}
-static void ap_request(void)
+static void ap_request(request_queue_t * q)
{
struct cap_request creq;
unsigned int minor;
@@ -160,7 +160,7 @@
#endif
end_request(1);
request_count--;
- ap_request();
+ ap_request(NULL);
}
@@ -271,7 +271,7 @@
return -1;
}
printk("ap_init: register dev %d\n", MAJOR_NR);
- blk_dev[MAJOR_NR].request_fn = &ap_request;
+ blk_init_queue(BLK_DEFAULT_QUEUE(MAJOR_NR), &ap_request);
for (i=0;i<NUM_APDEVS;i++) {
ap_blocksizes[i] = AP_BLOCK_SIZE;
@@ -307,7 +307,7 @@
invalidate_buffers(MKDEV(MAJOR_NR, i));
unregister_blkdev( MAJOR_NR, "apblock" );
- blk_dev[MAJOR_NR].request_fn = 0;
+ blk_cleanup_queue(BLK_DEFAULT_QUEUE(MAJOR_NR));
}
#endif /* MODULE */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)