[PATCH 03/03] clocksource: em_sti: Add DT support

From: Magnus Damm
Date: Wed May 09 2012 - 10:38:52 EST


From: Magnus Damm <damm@xxxxxxxxxxxxx>

Update the em-sti driver to support DT.

Signed-off-by: Magnus Damm <damm@xxxxxxxxxxxxx>
---

drivers/clocksource/em_sti.c | 7 +++++++
1 file changed, 7 insertions(+)

--- 0015/drivers/clocksource/em_sti.c
+++ work/drivers/clocksource/em_sti.c 2012-05-09 22:52:47.000000000 +0900
@@ -403,11 +403,18 @@ static int __devexit em_sti_remove(struc
return -EBUSY; /* cannot unregister clockevent and clocksource */
}

+static const struct of_device_id em_sti_dt_ids[] __devinitconst = {
+ { .compatible = "renesas,em-sti", },
+ {},
+};
+MODULE_DEVICE_TABLE(of, em_sti_dt_ids);
+
static struct platform_driver em_sti_device_driver = {
.probe = em_sti_probe,
.remove = __devexit_p(em_sti_remove),
.driver = {
.name = "em_sti",
+ .of_match_table = em_sti_dt_ids,
}
};

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/