diff options
-rw-r--r-- | drivers/ata/libata-acpi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/libata-acpi.c b/drivers/ata/libata-acpi.c index f6d80e342310..87f2f395d79a 100644 --- a/drivers/ata/libata-acpi.c +++ b/drivers/ata/libata-acpi.c | |||
@@ -77,7 +77,7 @@ acpi_handle ata_dev_acpi_handle(struct ata_device *dev) | |||
77 | acpi_integer adr; | 77 | acpi_integer adr; |
78 | struct ata_port *ap = dev->link->ap; | 78 | struct ata_port *ap = dev->link->ap; |
79 | 79 | ||
80 | if (dev->flags & ATA_DFLAG_ACPI_DISABLED) | 80 | if (libata_noacpi || dev->flags & ATA_DFLAG_ACPI_DISABLED) |
81 | return NULL; | 81 | return NULL; |
82 | 82 | ||
83 | if (ap->flags & ATA_FLAG_ACPI_SATA) { | 83 | if (ap->flags & ATA_FLAG_ACPI_SATA) { |
@@ -1047,7 +1047,7 @@ static int compat_pci_ata(struct ata_port *ap) | |||
1047 | 1047 | ||
1048 | static int ata_acpi_bind_host(struct ata_port *ap, acpi_handle *handle) | 1048 | static int ata_acpi_bind_host(struct ata_port *ap, acpi_handle *handle) |
1049 | { | 1049 | { |
1050 | if (ap->flags & ATA_FLAG_ACPI_SATA) | 1050 | if (libata_noacpi || ap->flags & ATA_FLAG_ACPI_SATA) |
1051 | return -ENODEV; | 1051 | return -ENODEV; |
1052 | 1052 | ||
1053 | *handle = acpi_get_child(DEVICE_ACPI_HANDLE(ap->tdev.parent), | 1053 | *handle = acpi_get_child(DEVICE_ACPI_HANDLE(ap->tdev.parent), |