aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aha1542.c
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@pobox.com>2005-05-28 07:52:51 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-06-17 13:04:45 -0400
commit3471c288036bf0835a82d0b1bbce2002f6e68390 (patch)
tree9a646a16877b7c600c583a32f703dd02a621c603 /drivers/scsi/aha1542.c
parente3df715501be3329986e5d9dfa9a477f49e7996b (diff)
[SCSI] Remove no-op implementations of SCSI EH hooks
Drivers need not implement a hook that returns FAILED, and does nothing else, since the SCSI midlayer code will do that for us. Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/aha1542.c')
-rw-r--r--drivers/scsi/aha1542.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/scsi/aha1542.c b/drivers/scsi/aha1542.c
index e9920a009593..eb8bc6822cc1 100644
--- a/drivers/scsi/aha1542.c
+++ b/drivers/scsi/aha1542.c
@@ -1348,20 +1348,6 @@ static int aha1542_restart(struct Scsi_Host *shost)
1348 return 0; 1348 return 0;
1349} 1349}
1350 1350
1351static int aha1542_abort(Scsi_Cmnd * SCpnt)
1352{
1353
1354 /*
1355 * The abort command does not leave the device in a clean state where
1356 * it is available to be used again. Until this gets worked out, we
1357 * will leave it commented out.
1358 */
1359
1360 printk(KERN_ERR "aha1542.c: Unable to abort command for target %d\n",
1361 SCpnt->device->id);
1362 return FAILED;
1363}
1364
1365/* 1351/*
1366 * This is a device reset. This is handled by sending a special command 1352 * This is a device reset. This is handled by sending a special command
1367 * to the device. 1353 * to the device.
@@ -1817,7 +1803,6 @@ static Scsi_Host_Template driver_template = {
1817 .detect = aha1542_detect, 1803 .detect = aha1542_detect,
1818 .release = aha1542_release, 1804 .release = aha1542_release,
1819 .queuecommand = aha1542_queuecommand, 1805 .queuecommand = aha1542_queuecommand,
1820 .eh_abort_handler = aha1542_abort,
1821 .eh_device_reset_handler= aha1542_dev_reset, 1806 .eh_device_reset_handler= aha1542_dev_reset,
1822 .eh_bus_reset_handler = aha1542_bus_reset, 1807 .eh_bus_reset_handler = aha1542_bus_reset,
1823 .eh_host_reset_handler = aha1542_host_reset, 1808 .eh_host_reset_handler = aha1542_host_reset,