Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a16b6c63 authored by Linus Walleij's avatar Linus Walleij
Browse files

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: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 63a62ec0
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -274,11 +274,17 @@ static void coh901331_shutdown(struct platform_device *pdev)
	clk_disable_unprepare(rtap->clk);
	clk_disable_unprepare(rtap->clk);
}
}


static const struct of_device_id coh901331_dt_match[] = {
	{ .compatible = "stericsson,coh901331" },
	{},
};

static struct platform_driver coh901331_driver = {
static struct platform_driver coh901331_driver = {
	.driver = {
	.driver = {
		.name = "rtc-coh901331",
		.name = "rtc-coh901331",
		.owner = THIS_MODULE,
		.owner = THIS_MODULE,
		.pm = &coh901331_pm_ops,
		.pm = &coh901331_pm_ops,
		.of_match_table = coh901331_dt_match,
	},
	},
	.remove = __exit_p(coh901331_remove),
	.remove = __exit_p(coh901331_remove),
	.shutdown = coh901331_shutdown,
	.shutdown = coh901331_shutdown,