diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2013-04-19 15:03:13 +0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-06-17 15:54:10 +0400 |
commit | a16b6c630ff8f291639c4cd0f8e57543735a1b5c (patch) | |
tree | c3b16eaa7b7ec17f04735f5acf31a0b5be683104 /drivers/rtc/rtc-coh901331.c | |
parent | 63a62ec09d634bc4a35dd61c513c2df006885a39 (diff) | |
download | linux-a16b6c630ff8f291639c4cd0f8e57543735a1b5c.tar.xz |
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>
Diffstat (limited to 'drivers/rtc/rtc-coh901331.c')
-rw-r--r-- | drivers/rtc/rtc-coh901331.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-coh901331.c b/drivers/rtc/rtc-coh901331.c index 93c06588ddca..ad6863a76af9 100644 --- a/drivers/rtc/rtc-coh901331.c +++ b/drivers/rtc/rtc-coh901331.c @@ -274,11 +274,17 @@ static void coh901331_shutdown(struct platform_device *pdev) clk_disable_unprepare(rtap->clk); } +static const struct of_device_id coh901331_dt_match[] = { + { .compatible = "stericsson,coh901331" }, + {}, +}; + static struct platform_driver coh901331_driver = { .driver = { .name = "rtc-coh901331", .owner = THIS_MODULE, .pm = &coh901331_pm_ops, + .of_match_table = coh901331_dt_match, }, .remove = __exit_p(coh901331_remove), .shutdown = coh901331_shutdown, |