aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaresh Bhat <naresh.bhat@linaro.org>2013-10-23 16:53:31 +0530
committerGraeme Gregory <graeme.gregory@linaro.org>2013-11-19 10:30:41 +0000
commitafc9a10c7f17988e0873ced15cfc6854f32eb4db (patch)
treefc85f03d9960d579db412df5e69b138fa166a25e
parente5853c35ecb9503f91e4e64f94339e75f73d2f8e (diff)
downloadleg-kernel-afc9a10c7f17988e0873ced15cfc6854f32eb4db.tar.gz
v2m_sysreg: Add ACPI probing for SYSREG
Add match table and pointers for ACPI probing into vexpress-sysreg driver. Signed-off-by: Naresh Bhat <naresh.bhat@linaro.org>
-rw-r--r--drivers/mfd/vexpress-sysreg.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/mfd/vexpress-sysreg.c b/drivers/mfd/vexpress-sysreg.c
index 981bef4b7ebc..9e39075d46af 100644
--- a/drivers/mfd/vexpress-sysreg.c
+++ b/drivers/mfd/vexpress-sysreg.c
@@ -22,6 +22,7 @@
#include <linux/stat.h>
#include <linux/timer.h>
#include <linux/vexpress.h>
+#include <linux/acpi.h>
#define SYS_ID 0x000
#define SYS_SW 0x004
@@ -512,10 +513,18 @@ static const struct of_device_id vexpress_sysreg_match[] = {
{},
};
+#ifdef CONFIG_ACPI
+static const struct acpi_device_id vexpress_sysreg_acpi_match[] = {
+ { "LINA0009", },
+ { }
+};
+#endif
+
static struct platform_driver vexpress_sysreg_driver = {
.driver = {
.name = "vexpress-sysreg",
.of_match_table = vexpress_sysreg_match,
+ .acpi_match_table = ACPI_PTR(vexpress_sysreg_acpi_match),
},
.probe = vexpress_sysreg_probe,
};