Commit a16b6c630ff8f291639c4cd0f8e57543735a1b5c
1 parent
63a62ec09d
Exists in
smarc-imx_3.14.28_1.0.0_ga
and in
1 other branch
rtc: coh901331: add devicetree support
This add devicetree probe support to the COH 901 331 RTC driver. Cc: Alessandro Zummo <a.zummo@towertech.it> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Showing 1 changed file with 6 additions and 0 deletions Side-by-side Diff
drivers/rtc/rtc-coh901331.c
... | ... | @@ -274,11 +274,17 @@ |
274 | 274 | clk_disable_unprepare(rtap->clk); |
275 | 275 | } |
276 | 276 | |
277 | +static const struct of_device_id coh901331_dt_match[] = { | |
278 | + { .compatible = "stericsson,coh901331" }, | |
279 | + {}, | |
280 | +}; | |
281 | + | |
277 | 282 | static struct platform_driver coh901331_driver = { |
278 | 283 | .driver = { |
279 | 284 | .name = "rtc-coh901331", |
280 | 285 | .owner = THIS_MODULE, |
281 | 286 | .pm = &coh901331_pm_ops, |
287 | + .of_match_table = coh901331_dt_match, | |
282 | 288 | }, |
283 | 289 | .remove = __exit_p(coh901331_remove), |
284 | 290 | .shutdown = coh901331_shutdown, |