]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/scsi/NCR5380.c
[PATCH] Option Card driver update, Maintainer entry
[linux-2.6-omap-h63xx.git] / drivers / scsi / NCR5380.c
index 770fa841e389e9e60981a918957a160d84f4a1b1..f8ec6fe7d85855a03457b0dabb80104f9f7d838f 100644 (file)
@@ -2825,39 +2825,17 @@ static int NCR5380_abort(Scsi_Cmnd * cmd) {
  * Locks: host lock taken by caller
  */
 
-static int NCR5380_bus_reset(Scsi_Cmnd * cmd) {
-       NCR5380_local_declare();
-       NCR5380_setup(cmd->device->host);
-
-       NCR5380_print_status(cmd->device->host);
-       do_reset(cmd->device->host);
-       return SUCCESS;
-}
-
-/* 
- * Function : int NCR5380_device_reset (Scsi_Cmnd *cmd)
- * 
- * Purpose : reset a SCSI device
- *
- * Returns : FAILED
- *
- * Locks: io_request_lock held by caller
- */
+static int NCR5380_bus_reset(Scsi_Cmnd * cmd)
+{
+       struct Scsi_Host *instance = cmd->device->host;
 
-static int NCR5380_device_reset(Scsi_Cmnd * cmd) {
-       return FAILED;
-}
+       NCR5380_local_declare();
+       NCR5380_setup(instance);
+       NCR5380_print_status(instance);
 
-/* 
- * Function : int NCR5380_host_reset (Scsi_Cmnd *cmd)
- * 
- * Purpose : reset a SCSI device
- *
- * Returns : FAILED
- *
- * Locks: io_request_lock held by caller
- */
+       spin_lock_irq(instance->host_lock);
+       do_reset(instance);
+       spin_unlock_irq(instance->host_lock);
 
-static int NCR5380_host_reset(Scsi_Cmnd * cmd) {
-       return FAILED;
+       return SUCCESS;
 }