aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2010-05-10 15:41:37 -0400
committerJeff Garzik <jgarzik@redhat.com>2010-05-19 13:35:47 -0400
commit5fe7454aa9c6ef5fcf506b0f2dfc20f696891f1a (patch)
tree94e01d83671ed916dd6c931333722702bf46c7ef /drivers/ata
parent8244cd05979ef924787aa70fd80304f1773976a1 (diff)
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')
-rw-r--r--drivers/ata/libata-core.c2
-rw-r--r--drivers/ata/libata-sff.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 200f49d09228..bf6ffc1273a0 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -5634,10 +5634,8 @@ struct ata_port *ata_port_alloc(struct ata_host *host)
5634 ap->pflags |= ATA_PFLAG_INITIALIZING; 5634 ap->pflags |= ATA_PFLAG_INITIALIZING;
5635 ap->lock = &host->lock; 5635 ap->lock = &host->lock;
5636 ap->print_id = -1; 5636 ap->print_id = -1;
5637 ap->ctl = ATA_DEVCTL_OBS;
5638 ap->host = host; 5637 ap->host = host;
5639 ap->dev = host->dev; 5638 ap->dev = host->dev;
5640 ap->last_ctl = 0xFF;
5641 5639
5642#if defined(ATA_VERBOSE_DEBUG) 5640#if defined(ATA_VERBOSE_DEBUG)
5643 /* turn on all debugging levels */ 5641 /* turn on all debugging levels */
diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c
index 6a103b310cac..8a1396f52a3a 100644
--- a/drivers/ata/libata-sff.c
+++ b/drivers/ata/libata-sff.c
@@ -3074,6 +3074,8 @@ EXPORT_SYMBOL_GPL(ata_pci_bmdma_init);
3074 */ 3074 */
3075void ata_sff_port_init(struct ata_port *ap) 3075void ata_sff_port_init(struct ata_port *ap)
3076{ 3076{
3077 ap->ctl = ATA_DEVCTL_OBS;
3078 ap->last_ctl = 0xFF;
3077} 3079}
3078 3080
3079int __init ata_sff_init(void) 3081int __init ata_sff_init(void)