summaryrefslogtreecommitdiffstats
path: root/drivers/ata/libata-sff.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2010-05-10 21:41:37 +0200
committerJeff Garzik <jgarzik@redhat.com>2010-05-19 13:35:47 -0400
commit5fe7454aa9c6ef5fcf506b0f2dfc20f696891f1a (patch)
tree94e01d83671ed916dd6c931333722702bf46c7ef /drivers/ata/libata-sff.c
parent8244cd05979ef924787aa70fd80304f1773976a1 (diff)
downloadop-kernel-dev-5fe7454aa9c6ef5fcf506b0f2dfc20f696891f1a.zip
op-kernel-dev-5fe7454aa9c6ef5fcf506b0f2dfc20f696891f1a.tar.gz
libata-sff: ap->[last_]ctl are SFF specific
ap->[last_]ctl are specific to SFF controllers. Put them inside CONFIG_ATA_SFF and move initialization into ata_sff_port_init(). Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/libata-sff.c')
-rw-r--r--drivers/ata/libata-sff.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c
index 6a103b3..8a1396f 100644
--- a/drivers/ata/libata-sff.c
+++ b/drivers/ata/libata-sff.c
@@ -3074,6 +3074,8 @@ EXPORT_SYMBOL_GPL(ata_pci_bmdma_init);
*/
void ata_sff_port_init(struct ata_port *ap)
{
+ ap->ctl = ATA_DEVCTL_OBS;
+ ap->last_ctl = 0xFF;
}
int __init ata_sff_init(void)
OpenPOWER on IntegriCloud