diff options
Diffstat (limited to 'drivers/ata/pata_platform.c')
-rw-r--r-- | drivers/ata/pata_platform.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/ata/pata_platform.c b/drivers/ata/pata_platform.c index e89656bffa8..ee1605bfc29 100644 --- a/drivers/ata/pata_platform.c +++ b/drivers/ata/pata_platform.c | |||
@@ -32,11 +32,9 @@ static int pio_mask = 1; | |||
32 | */ | 32 | */ |
33 | static int pata_platform_set_mode(struct ata_port *ap, struct ata_device **unused) | 33 | static int pata_platform_set_mode(struct ata_port *ap, struct ata_device **unused) |
34 | { | 34 | { |
35 | int i; | 35 | struct ata_device *dev; |
36 | |||
37 | for (i = 0; i < ATA_MAX_DEVICES; i++) { | ||
38 | struct ata_device *dev = &ap->link.device[i]; | ||
39 | 36 | ||
37 | ata_link_for_each_dev(dev, &ap->link) { | ||
40 | if (ata_dev_enabled(dev)) { | 38 | if (ata_dev_enabled(dev)) { |
41 | /* We don't really care */ | 39 | /* We don't really care */ |
42 | dev->pio_mode = dev->xfer_mode = XFER_PIO_0; | 40 | dev->pio_mode = dev->xfer_mode = XFER_PIO_0; |