diff options
Diffstat (limited to 'drivers/ide/ide-acpi.c')
-rw-r--r-- | drivers/ide/ide-acpi.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/ide/ide-acpi.c b/drivers/ide/ide-acpi.c index 6dfe1036e6fa..ac12d30f2105 100644 --- a/drivers/ide/ide-acpi.c +++ b/drivers/ide/ide-acpi.c | |||
@@ -280,16 +280,6 @@ static int do_drive_get_GTF(ide_drive_t *drive, | |||
280 | 280 | ||
281 | port = hwif->channel ? drive->dn - 2: drive->dn; | 281 | port = hwif->channel ? drive->dn - 2: drive->dn; |
282 | 282 | ||
283 | if (!drive->acpidata) { | ||
284 | if (port == 0) { | ||
285 | drive->acpidata = &hwif->acpidata->master; | ||
286 | hwif->acpidata->master.drive = drive; | ||
287 | } else { | ||
288 | drive->acpidata = &hwif->acpidata->slave; | ||
289 | hwif->acpidata->slave.drive = drive; | ||
290 | } | ||
291 | } | ||
292 | |||
293 | DEBPRINT("ENTER: %s at %s, port#: %d, hard_port#: %d\n", | 283 | DEBPRINT("ENTER: %s at %s, port#: %d, hard_port#: %d\n", |
294 | hwif->name, dev->bus_id, port, hwif->channel); | 284 | hwif->name, dev->bus_id, port, hwif->channel); |
295 | 285 | ||