patch-1.3.28 linux/drivers/block/sjcd.c

Next file: linux/drivers/block/sonycd535.c
Previous file: linux/drivers/block/sbpcd.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.27/linux/drivers/block/sjcd.c linux/drivers/block/sjcd.c
@@ -427,7 +427,7 @@
 /*
  * Check the drive if the disk is changed.
  */
-static int sjcd_disk_change( dev_t full_dev ){
+static int sjcd_disk_change( kdev_t full_dev ){
 #if 0
   printk( "sjcd_disk_change( 0x%x )\n", full_dev );
 #endif
@@ -908,7 +908,7 @@
  */
 
 #define CURRENT_IS_VALID                                      \
-    ( CURRENT != NULL && MAJOR( CURRENT->dev ) == MAJOR_NR && \
+    ( CURRENT != NULL && MAJOR( CURRENT->rq_dev ) == MAJOR_NR && \
       CURRENT->cmd == READ && CURRENT->sector != -1 )
 
 static void sjcd_transfer( void ){

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this