aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpio/gpio-xgene.c9
1 files changed, 9 insertions, 0 deletions
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 @@
17 * along with this program. If not, see <http://www.gnu.org/licenses/>. 17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */ 18 */
19 19
20#include <linux/acpi.h>
20#include <linux/kernel.h> 21#include <linux/kernel.h>
21#include <linux/init.h> 22#include <linux/init.h>
22#include <linux/io.h> 23#include <linux/io.h>
@@ -211,10 +212,18 @@ static const struct of_device_id xgene_gpio_of_match[] = {
211 {}, 212 {},
212}; 213};
213 214
215#ifdef CONFIG_ACPI
216static const struct acpi_device_id xgene_gpio_acpi_match[] = {
217 { "APMC0D14", 0 },
218 { },
219};
220#endif
221
214static struct platform_driver xgene_gpio_driver = { 222static struct platform_driver xgene_gpio_driver = {
215 .driver = { 223 .driver = {
216 .name = "xgene-gpio", 224 .name = "xgene-gpio",
217 .of_match_table = xgene_gpio_of_match, 225 .of_match_table = xgene_gpio_of_match,
226 .acpi_match_table = ACPI_PTR(xgene_gpio_acpi_match),
218 .pm = XGENE_GPIO_PM_OPS, 227 .pm = XGENE_GPIO_PM_OPS,
219 }, 228 },
220 .probe = xgene_gpio_probe, 229 .probe = xgene_gpio_probe,