lkml.org 
[lkml]   [2012]   [May]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
Subject[PATCH 03/03] clocksource: em_sti: Add DT support
From: Magnus Damm <damm@opensource.se>

Update the em-sti driver to support DT.

Signed-off-by: Magnus Damm <damm@opensource.se>
---
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,
}
};


\
 
 \ /
  Last update: 2012-05-09 17:21    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site