aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/3w-xxxx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/3w-xxxx.c')
-rw-r--r--drivers/scsi/3w-xxxx.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/scsi/3w-xxxx.c b/drivers/scsi/3w-xxxx.c
index 48f9ece1cbd0..973c51fb0fe2 100644
--- a/drivers/scsi/3w-xxxx.c
+++ b/drivers/scsi/3w-xxxx.c
@@ -1430,8 +1430,6 @@ static int tw_scsi_eh_reset(struct scsi_cmnd *SCpnt)
1430 1430
1431 tw_dev = (TW_Device_Extension *)SCpnt->device->host->hostdata; 1431 tw_dev = (TW_Device_Extension *)SCpnt->device->host->hostdata;
1432 1432
1433 spin_unlock_irq(tw_dev->host->host_lock);
1434
1435 tw_dev->num_resets++; 1433 tw_dev->num_resets++;
1436 1434
1437 printk(KERN_WARNING "3w-xxxx: scsi%d: WARNING: Unit #%d: Command (0x%x) timed out, resetting card.\n", tw_dev->host->host_no, SCpnt->device->id, SCpnt->cmnd[0]); 1435 printk(KERN_WARNING "3w-xxxx: scsi%d: WARNING: Unit #%d: Command (0x%x) timed out, resetting card.\n", tw_dev->host->host_no, SCpnt->device->id, SCpnt->cmnd[0]);
@@ -1444,7 +1442,6 @@ static int tw_scsi_eh_reset(struct scsi_cmnd *SCpnt)
1444 1442
1445 retval = SUCCESS; 1443 retval = SUCCESS;
1446out: 1444out:
1447 spin_lock_irq(tw_dev->host->host_lock);
1448 return retval; 1445 return retval;
1449} /* End tw_scsi_eh_reset() */ 1446} /* End tw_scsi_eh_reset() */
1450 1447
@@ -2267,9 +2264,9 @@ static void __tw_shutdown(TW_Device_Extension *tw_dev)
2267} /* End __tw_shutdown() */ 2264} /* End __tw_shutdown() */
2268 2265
2269/* Wrapper for __tw_shutdown */ 2266/* Wrapper for __tw_shutdown */
2270static void tw_shutdown(struct device *dev) 2267static void tw_shutdown(struct pci_dev *pdev)
2271{ 2268{
2272 struct Scsi_Host *host = pci_get_drvdata(to_pci_dev(dev)); 2269 struct Scsi_Host *host = pci_get_drvdata(pdev);
2273 TW_Device_Extension *tw_dev = (TW_Device_Extension *)host->hostdata; 2270 TW_Device_Extension *tw_dev = (TW_Device_Extension *)host->hostdata;
2274 2271
2275 __tw_shutdown(tw_dev); 2272 __tw_shutdown(tw_dev);
@@ -2454,9 +2451,7 @@ static struct pci_driver tw_driver = {
2454 .id_table = tw_pci_tbl, 2451 .id_table = tw_pci_tbl,
2455 .probe = tw_probe, 2452 .probe = tw_probe,
2456 .remove = tw_remove, 2453 .remove = tw_remove,
2457 .driver = { 2454 .shutdown = tw_shutdown,
2458 .shutdown = tw_shutdown
2459 }
2460}; 2455};
2461 2456
2462/* This function is called on driver initialization */ 2457/* This function is called on driver initialization */