aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-iops.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/ide-iops.c')
-rw-r--r--drivers/ide/ide-iops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/ide-iops.c b/drivers/ide/ide-iops.c
index 1bcb9484f49e..26b58d15c4e6 100644
--- a/drivers/ide/ide-iops.c
+++ b/drivers/ide/ide-iops.c
@@ -1111,7 +1111,7 @@ static ide_startstop_t do_reset1 (ide_drive_t *drive, int do_not_try_atapi)
1111 prepare_to_wait(&ide_park_wq, &wait, TASK_UNINTERRUPTIBLE); 1111 prepare_to_wait(&ide_park_wq, &wait, TASK_UNINTERRUPTIBLE);
1112 timeout = jiffies; 1112 timeout = jiffies;
1113 for (unit = 0; unit < MAX_DRIVES; unit++) { 1113 for (unit = 0; unit < MAX_DRIVES; unit++) {
1114 ide_drive_t *tdrive = &hwif->drives[unit]; 1114 ide_drive_t *tdrive = hwif->devices[unit];
1115 1115
1116 if (tdrive->dev_flags & IDE_DFLAG_PRESENT && 1116 if (tdrive->dev_flags & IDE_DFLAG_PRESENT &&
1117 tdrive->dev_flags & IDE_DFLAG_PARKED && 1117 tdrive->dev_flags & IDE_DFLAG_PARKED &&
@@ -1134,7 +1134,7 @@ static ide_startstop_t do_reset1 (ide_drive_t *drive, int do_not_try_atapi)
1134 * for any of the drives on this interface. 1134 * for any of the drives on this interface.
1135 */ 1135 */
1136 for (unit = 0; unit < MAX_DRIVES; ++unit) 1136 for (unit = 0; unit < MAX_DRIVES; ++unit)
1137 pre_reset(&hwif->drives[unit]); 1137 pre_reset(hwif->devices[unit]);
1138 1138
1139 if (io_ports->ctl_addr == 0) { 1139 if (io_ports->ctl_addr == 0) {
1140 spin_unlock_irqrestore(&hwif->lock, flags); 1140 spin_unlock_irqrestore(&hwif->lock, flags);