@@ -25,6 +25,7 @@
#include <linux/pinctrl/consumer.h>
#include <linux/pm.h>
#include <linux/platform_device.h>
+#include <linux/acpi.h>
#define GPIODIR 0x400
#define GPIOIS 0x404
@@ -471,10 +472,17 @@ static const struct of_device_id pl061_of_match[] = {
};
MODULE_DEVICE_TABLE(of, pl061_of_match);
+static const struct acpi_device_id pl061_acpi_match[] = {
+ { "ARMH0061",},
+ { }
+};
+MODULE_DEVICE_TABLE(acpi, pl061_acpi_match);
+
static struct platform_driver pl061_gpio_platform_driver = {
.driver = {
.name = "pl061_gpio",
.of_match_table = pl061_of_match,
+ .acpi_match_table = ACPI_PTR(pl061_acpi_match),
#ifdef CONFIG_PM
.pm = &pl061_dev_pm_ops,
#endif