aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/ab8500-pwm.c
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2012-05-18 04:39:12 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2012-05-20 11:27:13 -0400
commit3770c75a6852a87afc66cd514c13899f8a288cef (patch)
tree9e46d3ef1b9a3aa1b5d9c07b6bef6a65df2b3011 /drivers/misc/ab8500-pwm.c
parent01247ef7ecbf36515a1cc3c2b34e4738aab1bd40 (diff)
mfd: Enable Device Tree support in the ab8500-pwm driver
This patch ensures probing of the ab8500-pwm 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/misc/ab8500-pwm.c')
-rw-r--r--drivers/misc/ab8500-pwm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/misc/ab8500-pwm.c b/drivers/misc/ab8500-pwm.c
index d7a9aa14e5d5..042a8fe4efaa 100644
--- a/drivers/misc/ab8500-pwm.c
+++ b/drivers/misc/ab8500-pwm.c
@@ -142,10 +142,16 @@ static int __devexit ab8500_pwm_remove(struct platform_device *pdev)
142 return 0; 142 return 0;
143} 143}
144 144
145static const struct of_device_id ab8500_pwm_match[] = {
146 { .compatible = "stericsson,ab8500-pwm", },
147 {}
148};
149
145static struct platform_driver ab8500_pwm_driver = { 150static struct platform_driver ab8500_pwm_driver = {
146 .driver = { 151 .driver = {
147 .name = "ab8500-pwm", 152 .name = "ab8500-pwm",
148 .owner = THIS_MODULE, 153 .owner = THIS_MODULE,
154 .of_match_table = ab8500_pwm_match,
149 }, 155 },
150 .probe = ab8500_pwm_probe, 156 .probe = ab8500_pwm_probe,
151 .remove = __devexit_p(ab8500_pwm_remove), 157 .remove = __devexit_p(ab8500_pwm_remove),