summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/ab8500-sysctrl.c
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2012-05-18 09:39:10 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2012-05-20 17:27:13 +0200
commit01247ef7ecbf36515a1cc3c2b34e4738aab1bd40 (patch)
tree8db2f7c2aa74e8ebce70f0defcbe00bb5a75469c /drivers/mfd/ab8500-sysctrl.c
parent37e13cecaa141eccce705843f5d2f7509e29bd3a (diff)
downloadop-kernel-dev-01247ef7ecbf36515a1cc3c2b34e4738aab1bd40.zip
op-kernel-dev-01247ef7ecbf36515a1cc3c2b34e4738aab1bd40.tar.gz
mfd: Enable Device Tree support in the ab8500-sysctrl driver
This patch ensures probing of the ab8500-sysctrl driver during a DT enabled boot, so long as the associated nodes are present in the Device Tree binary. Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/ab8500-sysctrl.c')
-rw-r--r--drivers/mfd/ab8500-sysctrl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mfd/ab8500-sysctrl.c b/drivers/mfd/ab8500-sysctrl.c
index c28d4eb1..5a3e51c 100644
--- a/drivers/mfd/ab8500-sysctrl.c
+++ b/drivers/mfd/ab8500-sysctrl.c
@@ -61,10 +61,16 @@ static int __devexit ab8500_sysctrl_remove(struct platform_device *pdev)
return 0;
}
+static const struct of_device_id ab8500_sysctrl_match[] = {
+ { .compatible = "stericsson,ab8500-sysctrl", },
+ {}
+};
+
static struct platform_driver ab8500_sysctrl_driver = {
.driver = {
.name = "ab8500-sysctrl",
.owner = THIS_MODULE,
+ .of_match_table = ab8500_sysctrl_match,
},
.probe = ab8500_sysctrl_probe,
.remove = __devexit_p(ab8500_sysctrl_remove),
OpenPOWER on IntegriCloud