From: Duc Dang Date: Sat, 30 Apr 2016 20:49:27 +0000 (-0700) Subject: gpio: xgene: Enable ACPI support for X-Gene GFC GPIO driver X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0c60de3f73cddde6a83979c64f63cb1101f5326c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git gpio: xgene: Enable ACPI support for X-Gene GFC GPIO driver This patch enables ACPI support for X-Gene GFC GPIO driver. Signed-off-by: Duc Dang Signed-off-by: Linus Walleij --- diff --git a/drivers/gpio/gpio-xgene.c b/drivers/gpio/gpio-xgene.c index 4193502fe3be..46faecd1f580 100644 --- a/drivers/gpio/gpio-xgene.c +++ b/drivers/gpio/gpio-xgene.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include @@ -211,10 +212,18 @@ static const struct of_device_id xgene_gpio_of_match[] = { {}, }; +#ifdef CONFIG_ACPI +static const struct acpi_device_id xgene_gpio_acpi_match[] = { + { "APMC0D14", 0 }, + { }, +}; +#endif + static struct platform_driver xgene_gpio_driver = { .driver = { .name = "xgene-gpio", .of_match_table = xgene_gpio_of_match, + .acpi_match_table = ACPI_PTR(xgene_gpio_acpi_match), .pm = XGENE_GPIO_PM_OPS, }, .probe = xgene_gpio_probe,