Commit 3770c75a6852a87afc66cd514c13899f8a288cef

Authored by Lee Jones
Committed by Samuel Ortiz
1 parent 01247ef7ec

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>

Showing 1 changed file with 6 additions and 0 deletions Side-by-side Diff

drivers/misc/ab8500-pwm.c
... ... @@ -142,10 +142,16 @@
142 142 return 0;
143 143 }
144 144  
  145 +static const struct of_device_id ab8500_pwm_match[] = {
  146 + { .compatible = "stericsson,ab8500-pwm", },
  147 + {}
  148 +};
  149 +
145 150 static struct platform_driver ab8500_pwm_driver = {
146 151 .driver = {
147 152 .name = "ab8500-pwm",
148 153 .owner = THIS_MODULE,
  154 + .of_match_table = ab8500_pwm_match,
149 155 },
150 156 .probe = ab8500_pwm_probe,
151 157 .remove = __devexit_p(ab8500_pwm_remove),