Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133365
b: refs/heads/master
c: 2f0d0fd
h: refs/heads/master
i:
  133363: bc41764
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Mar 24, 2009
1 parent 0a0862c commit d2c89b6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 28 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8b803bd184e3f6892284d4b50801b9ec85cd9b96
refs/heads/master: 2f0d0fd2a605666d38e290c5c0d2907484352dc4
27 changes: 0 additions & 27 deletions trunk/drivers/ide/ide-acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,39 +219,12 @@ static int do_drive_get_GTF(ide_drive_t *drive,
acpi_status status;
struct acpi_buffer output;
union acpi_object *out_obj;
ide_hwif_t *hwif = drive->hwif;
struct device *dev = hwif->gendev.parent;
int err = -ENODEV;
int port;

*gtf_length = 0;
*gtf_address = 0UL;
*obj_loc = 0UL;

if (ide_noacpi)
return 0;

if (!dev) {
DEBPRINT("no PCI device for %s\n", hwif->name);
goto out;
}

if (!hwif->acpidata) {
DEBPRINT("no ACPI data for %s\n", hwif->name);
goto out;
}

port = hwif->channel ? drive->dn - 2: drive->dn;

DEBPRINT("ENTER: %s at %s, port#: %d, hard_port#: %d\n",
hwif->name, dev_name(dev), port, hwif->channel);

if ((drive->dev_flags & IDE_DFLAG_PRESENT) == 0) {
DEBPRINT("%s drive %d:%d not present\n",
hwif->name, hwif->channel, port);
goto out;
}

if (!drive->acpidata->obj_handle) {
DEBPRINT("No ACPI object found for %s\n", drive->name);
goto out;
Expand Down

0 comments on commit d2c89b6

Please sign in to comment.