diff options
Diffstat (limited to 'drivers/ata/pata_pdc2027x.c')
-rw-r--r-- | drivers/ata/pata_pdc2027x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/pata_pdc2027x.c b/drivers/ata/pata_pdc2027x.c index bb64a986e8f5..fa780509a1dc 100644 --- a/drivers/ata/pata_pdc2027x.c +++ b/drivers/ata/pata_pdc2027x.c | |||
@@ -486,7 +486,7 @@ static int pdc2027x_set_mode(struct ata_port *ap, struct ata_device **r_failed) | |||
486 | return i; | 486 | return i; |
487 | 487 | ||
488 | for (i = 0; i < ATA_MAX_DEVICES; i++) { | 488 | for (i = 0; i < ATA_MAX_DEVICES; i++) { |
489 | struct ata_device *dev = &ap->device[i]; | 489 | struct ata_device *dev = &ap->link.device[i]; |
490 | 490 | ||
491 | if (ata_dev_enabled(dev)) { | 491 | if (ata_dev_enabled(dev)) { |
492 | 492 | ||