mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]>
This commit is contained in:
parent
4c9bf4e799
commit
520d06f92b
5 changed files with 8 additions and 119 deletions
|
|
@ -5246,35 +5246,7 @@ static bool ipr_qc_fill_rtf(struct ata_queued_cmd *qc)
|
|||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* ipr_ata_check_status - Return last ATA status
|
||||
* @ap: ATA port
|
||||
*
|
||||
* Return value:
|
||||
* ATA status
|
||||
**/
|
||||
static u8 ipr_ata_check_status(struct ata_port *ap)
|
||||
{
|
||||
struct ipr_sata_port *sata_port = ap->private_data;
|
||||
return sata_port->ioasa.status;
|
||||
}
|
||||
|
||||
/**
|
||||
* ipr_ata_check_altstatus - Return last ATA altstatus
|
||||
* @ap: ATA port
|
||||
*
|
||||
* Return value:
|
||||
* Alt ATA status
|
||||
**/
|
||||
static u8 ipr_ata_check_altstatus(struct ata_port *ap)
|
||||
{
|
||||
struct ipr_sata_port *sata_port = ap->private_data;
|
||||
return sata_port->ioasa.alt_status;
|
||||
}
|
||||
|
||||
static struct ata_port_operations ipr_sata_ops = {
|
||||
.sff_check_status = ipr_ata_check_status,
|
||||
.sff_check_altstatus = ipr_ata_check_altstatus,
|
||||
.sff_dev_select = ata_noop_dev_select,
|
||||
.phy_reset = ipr_ata_phy_reset,
|
||||
.hardreset = ipr_sata_reset,
|
||||
|
|
|
|||
|
|
@ -233,12 +233,6 @@ static bool sas_ata_qc_fill_rtf(struct ata_queued_cmd *qc)
|
|||
return true;
|
||||
}
|
||||
|
||||
static u8 sas_ata_check_status(struct ata_port *ap)
|
||||
{
|
||||
struct domain_device *dev = ap->private_data;
|
||||
return dev->sata_dev.tf.command;
|
||||
}
|
||||
|
||||
static void sas_ata_phy_reset(struct ata_port *ap)
|
||||
{
|
||||
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,
|
|||
}
|
||||
|
||||
static struct ata_port_operations sas_sata_ops = {
|
||||
.sff_check_status = sas_ata_check_status,
|
||||
.sff_check_altstatus = sas_ata_check_status,
|
||||
.sff_dev_select = ata_noop_dev_select,
|
||||
.phy_reset = sas_ata_phy_reset,
|
||||
.post_internal_cmd = sas_ata_post_internal,
|
||||
|
|
|
|||
Loading…
Reference in a new issue