aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_platform.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/pata_platform.c')
-rw-r--r--drivers/ata/pata_platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/pata_platform.c b/drivers/ata/pata_platform.c
index 5086d03f2d7c..e89656bffa84 100644
--- a/drivers/ata/pata_platform.c
+++ b/drivers/ata/pata_platform.c
@@ -35,7 +35,7 @@ static int pata_platform_set_mode(struct ata_port *ap, struct ata_device **unuse
35 int i; 35 int i;
36 36
37 for (i = 0; i < ATA_MAX_DEVICES; i++) { 37 for (i = 0; i < ATA_MAX_DEVICES; i++) {
38 struct ata_device *dev = &ap->device[i]; 38 struct ata_device *dev = &ap->link.device[i];
39 39
40 if (ata_dev_enabled(dev)) { 40 if (ata_dev_enabled(dev)) {
41 /* We don't really care */ 41 /* We don't really care */