diff options
Diffstat (limited to 'drivers/ide/ide-acpi.c')
-rw-r--r-- | drivers/ide/ide-acpi.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/ide/ide-acpi.c b/drivers/ide/ide-acpi.c index f89b6ecf7d1a..fd155b8a256c 100644 --- a/drivers/ide/ide-acpi.c +++ b/drivers/ide/ide-acpi.c | |||
@@ -656,7 +656,7 @@ void ide_acpi_set_state(ide_hwif_t *hwif, int on) | |||
656 | if (on) | 656 | if (on) |
657 | acpi_bus_set_power(hwif->acpidata->obj_handle, ACPI_STATE_D0); | 657 | acpi_bus_set_power(hwif->acpidata->obj_handle, ACPI_STATE_D0); |
658 | for (unit = 0; unit < MAX_DRIVES; ++unit) { | 658 | for (unit = 0; unit < MAX_DRIVES; ++unit) { |
659 | ide_drive_t *drive = &hwif->drives[unit]; | 659 | ide_drive_t *drive = hwif->devices[unit]; |
660 | 660 | ||
661 | if (!drive->acpidata->obj_handle) | 661 | if (!drive->acpidata->obj_handle) |
662 | drive->acpidata->obj_handle = ide_acpi_drive_get_handle(drive); | 662 | drive->acpidata->obj_handle = ide_acpi_drive_get_handle(drive); |
@@ -711,14 +711,14 @@ void ide_acpi_port_init_devices(ide_hwif_t *hwif) | |||
711 | * for both drives, regardless whether they are connected | 711 | * for both drives, regardless whether they are connected |
712 | * or not. | 712 | * or not. |
713 | */ | 713 | */ |
714 | hwif->drives[0].acpidata = &hwif->acpidata->master; | 714 | hwif->devices[0]->acpidata = &hwif->acpidata->master; |
715 | hwif->drives[1].acpidata = &hwif->acpidata->slave; | 715 | hwif->devices[1]->acpidata = &hwif->acpidata->slave; |
716 | 716 | ||
717 | /* | 717 | /* |
718 | * Send IDENTIFY for each drive | 718 | * Send IDENTIFY for each drive |
719 | */ | 719 | */ |
720 | for (i = 0; i < MAX_DRIVES; i++) { | 720 | for (i = 0; i < MAX_DRIVES; i++) { |
721 | drive = &hwif->drives[i]; | 721 | drive = hwif->devices[i]; |
722 | 722 | ||
723 | memset(drive->acpidata, 0, sizeof(*drive->acpidata)); | 723 | memset(drive->acpidata, 0, sizeof(*drive->acpidata)); |
724 | 724 | ||
@@ -745,7 +745,7 @@ void ide_acpi_port_init_devices(ide_hwif_t *hwif) | |||
745 | ide_acpi_push_timing(hwif); | 745 | ide_acpi_push_timing(hwif); |
746 | 746 | ||
747 | for (i = 0; i < MAX_DRIVES; i++) { | 747 | for (i = 0; i < MAX_DRIVES; i++) { |
748 | drive = &hwif->drives[i]; | 748 | drive = hwif->devices[i]; |
749 | 749 | ||
750 | if (drive->dev_flags & IDE_DFLAG_PRESENT) | 750 | if (drive->dev_flags & IDE_DFLAG_PRESENT) |
751 | /* Execute ACPI startup code */ | 751 | /* Execute ACPI startup code */ |