* [PATCH 11/23] rtc: coh901331: add devicetree support
@ 2013-04-22 9:56 Linus Walleij
0 siblings, 0 replies; only message in thread
From: Linus Walleij @ 2013-04-22 9:56 UTC (permalink / raw)
To: linux-arm-kernel, Alessandro Zummo, rtc-linux
Cc: devicetree-discuss, Linus Walleij, Arnd Bergmann
From: Linus Walleij <linus.walleij@linaro.org>
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>
---
Hi Alessandro, I'm seeking an ACK to take this patch through
the ARM SoC tree along with the code making use of it.
---
drivers/rtc/rtc-coh901331.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/rtc/rtc-coh901331.c b/drivers/rtc/rtc-coh901331.c
index 2d28ec1..4415b57 100644
--- a/drivers/rtc/rtc-coh901331.c
+++ b/drivers/rtc/rtc-coh901331.c
@@ -276,10 +276,16 @@ 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,
+ .of_match_table = coh901331_dt_match,
},
.remove = __exit_p(coh901331_remove),
.suspend = coh901331_suspend,
--
1.7.11.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-04-22 9:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-22 9:56 [PATCH 11/23] rtc: coh901331: add devicetree support Linus Walleij
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).