Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752227AbcD3UuI (ORCPT ); Sat, 30 Apr 2016 16:50:08 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:33086 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751912AbcD3UuG (ORCPT ); Sat, 30 Apr 2016 16:50:06 -0400 From: Duc Dang To: Linus Walleij , Alexandre Courbot Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, patches@apm.com, Duc Dang Subject: [PATCH 1/1] gpio: xgene: Enable ACPI support for X-Gene GFC GPIO driver Date: Sat, 30 Apr 2016 13:49:27 -0700 Message-Id: <1462049367-10028-1-git-send-email-dhdang@apm.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1071 Lines: 40 This patch enables ACPI support for X-Gene GFC GPIO driver. Signed-off-by: Duc Dang --- drivers/gpio/gpio-xgene.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/gpio/gpio-xgene.c b/drivers/gpio/gpio-xgene.c index 0dc9161..c00c408 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 @@ -218,10 +219,18 @@ static const struct of_device_id xgene_gpio_of_match[] = { }; MODULE_DEVICE_TABLE(of, 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, -- 1.9.1