[PATCH 2/2] drivers: PL061: add ACPI probing for PL061
From: Shannon Zhao <hidden>
Date: 2015-08-03 06:59:58
Subsystem:
gpio subsystem, the rest · Maintainers:
Linus Walleij, Bartosz Golaszewski, Linus Torvalds
From: Shannon Zhao <hidden>
Date: 2015-08-03 06:59:58
Subsystem:
gpio subsystem, the rest · Maintainers:
Linus Walleij, Bartosz Golaszewski, Linus Torvalds
From: Shannon Zhao <redacted> Add the necessary driver boilerplate to let the driver be used when the respective ACPI table is discovered by the ACPI subsystem. Signed-off-by: Shannon Zhao <redacted> Signed-off-by: Shannon Zhao <redacted> --- drivers/gpio/gpio-pl061.c | 8 ++++++++ 1 file changed, 8 insertions(+)
diff --git a/drivers/gpio/gpio-pl061.c b/drivers/gpio/gpio-pl061.c
index 64c10eb..41fcf7b 100644
--- a/drivers/gpio/gpio-pl061.c
+++ b/drivers/gpio/gpio-pl061.c@@ -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
--
2.0.4