]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/ata/ahci_xgene.c
Merge tag 'iommu-updates-v4.1' of git://git.kernel.org/pub/scm/linux/kernel/git/joro...
[karo-tx-linux.git] / drivers / ata / ahci_xgene.c
index 2e8bb603e44750b749c933a4dd71db1648e5f732..2b78510d94dd7732f7231d0348d7a1f0818a427a 100644 (file)
@@ -22,6 +22,7 @@
  * NOTE: PM support is not currently available.
  *
  */
+#include <linux/acpi.h>
 #include <linux/module.h>
 #include <linux/platform_device.h>
 #include <linux/ahci_platform.h>
@@ -718,6 +719,14 @@ disable_resources:
        return rc;
 }
 
+#ifdef CONFIG_ACPI
+static const struct acpi_device_id xgene_ahci_acpi_match[] = {
+       { "APMC0D0D", },
+       { }
+};
+MODULE_DEVICE_TABLE(acpi, xgene_ahci_acpi_match);
+#endif
+
 static const struct of_device_id xgene_ahci_of_match[] = {
        {.compatible = "apm,xgene-ahci"},
        {},
@@ -730,6 +739,7 @@ static struct platform_driver xgene_ahci_driver = {
        .driver = {
                .name = DRV_NAME,
                .of_match_table = xgene_ahci_of_match,
+               .acpi_match_table = ACPI_PTR(xgene_ahci_acpi_match),
        },
 };