From: Naresh Bhat naresh.bhat@linaro.org
Add match table and pointers for ACPI probing into vexpress-sysreg driver.
Signed-off-by: Naresh Bhat naresh.bhat@linaro.org --- drivers/mfd/vexpress-sysreg.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
diff --git a/drivers/mfd/vexpress-sysreg.c b/drivers/mfd/vexpress-sysreg.c index 981bef4..134ad10 100644 --- a/drivers/mfd/vexpress-sysreg.c +++ b/drivers/mfd/vexpress-sysreg.c @@ -22,6 +22,9 @@ #include <linux/stat.h> #include <linux/timer.h> #include <linux/vexpress.h> +#ifdef CONFIG_ACPI +#include <linux/acpi.h> +#endif
#define SYS_ID 0x000 #define SYS_SW 0x004 @@ -507,6 +510,14 @@ static int vexpress_sysreg_probe(struct platform_device *pdev) return 0; }
+#ifdef CONFIG_ACPI +static const struct acpi_device_id vexpress_sysreg_acpi_match[] = { + { "LINA0006", }, + { } +}; +MODULE_DEVICE_TABLE(acpi, vexpress_sysreg_acpi_match); +#endif + static const struct of_device_id vexpress_sysreg_match[] = { { .compatible = "arm,vexpress-sysreg", }, {}, @@ -516,6 +527,7 @@ 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, };