aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2008-04-07 09:47:21 -0400
committerJeff Garzik <jgarzik@redhat.com>2008-04-17 15:44:24 -0400
commit520d06f92b32d7abe5127d7cc46a819db0f384e6 (patch)
treefd4f9ce7fdfa4296a1e71457906500736ca27fa0 /drivers/scsi
parent4c9bf4e799ce06a7378f1196587084802a414c03 (diff)
libata: remove check_status from non-SFF drivers
Now that all SFF stuff is separated out of core layer, core layer doesn't call ops->[alt_]check_status(). In fact, no one calls them for non-SFF drivers anymore. Kill them. Signed-off-by: Tejun Heo <htejun@gmail.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/ipr.c28
-rw-r--r--drivers/scsi/libsas/sas_ata.c8
2 files changed, 0 insertions, 36 deletions
diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c
index b079f6c33711..5a95ea7c4dba 100644
--- a/drivers/scsi/ipr.c
+++ b/drivers/scsi/ipr.c
@@ -5246,35 +5246,7 @@ static bool ipr_qc_fill_rtf(struct ata_queued_cmd *qc)
5246 return true; 5246 return true;
5247} 5247}
5248 5248
5249/**
5250 * ipr_ata_check_status - Return last ATA status
5251 * @ap: ATA port
5252 *
5253 * Return value:
5254 * ATA status
5255 **/
5256static u8 ipr_ata_check_status(struct ata_port *ap)
5257{
5258 struct ipr_sata_port *sata_port = ap->private_data;
5259 return sata_port->ioasa.status;
5260}
5261
5262/**
5263 * ipr_ata_check_altstatus - Return last ATA altstatus
5264 * @ap: ATA port
5265 *
5266 * Return value:
5267 * Alt ATA status
5268 **/
5269static u8 ipr_ata_check_altstatus(struct ata_port *ap)
5270{
5271 struct ipr_sata_port *sata_port = ap->private_data;
5272 return sata_port->ioasa.alt_status;
5273}
5274
5275static struct ata_port_operations ipr_sata_ops = { 5249static struct ata_port_operations ipr_sata_ops = {
5276 .sff_check_status = ipr_ata_check_status,
5277 .sff_check_altstatus = ipr_ata_check_altstatus,
5278 .sff_dev_select = ata_noop_dev_select, 5250 .sff_dev_select = ata_noop_dev_select,
5279 .phy_reset = ipr_ata_phy_reset, 5251 .phy_reset = ipr_ata_phy_reset,
5280 .hardreset = ipr_sata_reset, 5252 .hardreset = ipr_sata_reset,
diff --git a/drivers/scsi/libsas/sas_ata.c b/drivers/scsi/libsas/sas_ata.c
index e81f2fd8ba8b..5c114bb7e907 100644
--- a/drivers/scsi/libsas/sas_ata.c
+++ b/drivers/scsi/libsas/sas_ata.c
@@ -233,12 +233,6 @@ static bool sas_ata_qc_fill_rtf(struct ata_queued_cmd *qc)
233 return true; 233 return true;
234} 234}
235 235
236static u8 sas_ata_check_status(struct ata_port *ap)
237{
238 struct domain_device *dev = ap->private_data;
239 return dev->sata_dev.tf.command;
240}
241
242static void sas_ata_phy_reset(struct ata_port *ap) 236static void sas_ata_phy_reset(struct ata_port *ap)
243{ 237{
244 struct domain_device *dev = ap->private_data; 238 struct domain_device *dev = ap->private_data;
@@ -350,8 +344,6 @@ static int sas_ata_scr_read(struct ata_port *ap, unsigned int sc_reg_in,
350} 344}
351 345
352static struct ata_port_operations sas_sata_ops = { 346static struct ata_port_operations sas_sata_ops = {
353 .sff_check_status = sas_ata_check_status,
354 .sff_check_altstatus = sas_ata_check_status,
355 .sff_dev_select = ata_noop_dev_select, 347 .sff_dev_select = ata_noop_dev_select,
356 .phy_reset = sas_ata_phy_reset, 348 .phy_reset = sas_ata_phy_reset,
357 .post_internal_cmd = sas_ata_post_internal, 349 .post_internal_cmd = sas_ata_post_internal,