gpio: xgene: Enable ACPI support for X-Gene GFC GPIO driver
authorDuc Dang <dhdang@apm.com>
Sat, 30 Apr 2016 20:49:27 +0000 (13:49 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Sun, 1 May 2016 08:23:12 +0000 (10:23 +0200)
This patch enables ACPI support for X-Gene GFC GPIO driver.

Signed-off-by: Duc Dang <dhdang@apm.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-xgene.c

index 4193502fe3be8e9c46743fae09670d67d18958f7..46faecd1f580af8536ebdd57d8af9cd7236eb16b 100644 (file)
@@ -17,6 +17,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <linux/acpi.h>
 #include <linux/kernel.h>
 #include <linux/init.h>
 #include <linux/io.h>
@@ -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,