Skip to contentSkip to conversation

drives/scsi/tmscsim.c: check_region -> request_region (241p9)

PATCH New Rasmus Andersen 1 participant 1 message Jan 23, 2001 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drives/scsi/tmscsim.c: check_region -> request_region (241p9)

(Forgot to cc lk. If anyone have comments please cc [email protected]. Thanks.)

----- Forwarded message from Rasmus Andersen <[email protected]> -----

Hi.

The following patch makes drives/scsi/tmscsim.c use request_region instead of check_region+request_region. It applies cleanly against ac10 and with a little fuzz against 241p9.

Please comment.

drivers/scsi/tmscsim.c +1 -3
@@ -2088,13 +2088,11 @@
     
     pACB = (PACB) psh->hostdata;
     
-    if (check_region (io_port, psh->n_io_port))
+    if (!request_region (io_port, psh->n_io_port, "tmscsim"))
 	{
 	    printk(KERN_ERR "DC390: register IO ports error!\n");
 	    return( -1 );
 	}
-    else
-	request_region (io_port, psh->n_io_port, "tmscsim");
 
     DC390_read8_ (INT_Status, io_port);		/* Reset Pending INT */
 

----- End forwarded message -----

Signature · 11 lines
        Rasmus([email protected])

"The obvious mathematical breakthrough would be development of an easy way
to factor large prime numbers." 
  -- Bill Gates, The Road Ahead, Viking Penguin (1995)


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/