diff options
Diffstat (limited to 'drivers/ata/pata_legacy.c')
-rw-r--r-- | drivers/ata/pata_legacy.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/drivers/ata/pata_legacy.c b/drivers/ata/pata_legacy.c index 930c2208640b..6c1d778b63a9 100644 --- a/drivers/ata/pata_legacy.c +++ b/drivers/ata/pata_legacy.c | |||
@@ -194,15 +194,12 @@ static int legacy_set_mode(struct ata_link *link, struct ata_device **unused) | |||
194 | { | 194 | { |
195 | struct ata_device *dev; | 195 | struct ata_device *dev; |
196 | 196 | ||
197 | ata_link_for_each_dev(dev, link) { | 197 | ata_for_each_dev(dev, link, ENABLED) { |
198 | if (ata_dev_enabled(dev)) { | 198 | ata_dev_printk(dev, KERN_INFO, "configured for PIO\n"); |
199 | ata_dev_printk(dev, KERN_INFO, | 199 | dev->pio_mode = XFER_PIO_0; |
200 | "configured for PIO\n"); | 200 | dev->xfer_mode = XFER_PIO_0; |
201 | dev->pio_mode = XFER_PIO_0; | 201 | dev->xfer_shift = ATA_SHIFT_PIO; |
202 | dev->xfer_mode = XFER_PIO_0; | 202 | dev->flags |= ATA_DFLAG_PIO; |
203 | dev->xfer_shift = ATA_SHIFT_PIO; | ||
204 | dev->flags |= ATA_DFLAG_PIO; | ||
205 | } | ||
206 | } | 203 | } |
207 | return 0; | 204 | return 0; |
208 | } | 205 | } |
@@ -641,7 +638,6 @@ static void qdi6500_set_piomode(struct ata_port *ap, struct ata_device *adev) | |||
641 | * qdi6580dp_set_piomode - PIO setup for dual channel | 638 | * qdi6580dp_set_piomode - PIO setup for dual channel |
642 | * @ap: Port | 639 | * @ap: Port |
643 | * @adev: Device | 640 | * @adev: Device |
644 | * @irq: interrupt line | ||
645 | * | 641 | * |
646 | * In dual channel mode the 6580 has one clock per channel and we have | 642 | * In dual channel mode the 6580 has one clock per channel and we have |
647 | * to software clockswitch in qc_issue. | 643 | * to software clockswitch in qc_issue. |
@@ -1028,7 +1024,7 @@ static __init int legacy_init_one(struct legacy_probe *probe) | |||
1028 | /* Nothing found means we drop the port as its probably not there */ | 1024 | /* Nothing found means we drop the port as its probably not there */ |
1029 | 1025 | ||
1030 | ret = -ENODEV; | 1026 | ret = -ENODEV; |
1031 | ata_link_for_each_dev(dev, &ap->link) { | 1027 | ata_for_each_dev(dev, &ap->link, ALL) { |
1032 | if (!ata_dev_absent(dev)) { | 1028 | if (!ata_dev_absent(dev)) { |
1033 | legacy_host[probe->slot] = host; | 1029 | legacy_host[probe->slot] = host; |
1034 | ld->platform_dev = pdev; | 1030 | ld->platform_dev = pdev; |