summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mfd/syscon.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c
index e6722e1916..55cc34ff56 100644
--- a/drivers/mfd/syscon.c
+++ b/drivers/mfd/syscon.c
@@ -95,10 +95,16 @@ static struct platform_device_id syscon_ids[] = {
{ }
};
+static struct of_device_id of_syscon_match[] = {
+ { .compatible = "syscon" },
+ { },
+};
+
static struct driver_d syscon_driver = {
.name = "syscon",
.probe = syscon_probe,
.id_table = syscon_ids,
+ .of_compatible = DRV_OF_COMPAT(of_syscon_match),
};
static int __init syscon_init(void)