aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clocksource/em_sti.c
diff options
context:
space:
mode:
authorMagnus Damm <magnus.damm@gmail.com>2012-05-09 10:39:50 -0400
committerThomas Gleixner <tglx@linutronix.de>2012-05-25 05:32:06 -0400
commitfc0830fe017d02b7b4995b5c402b484b65d9dfc6 (patch)
treed1832b03e765f7f78619f0e6ba57644afe542ed0 /drivers/clocksource/em_sti.c
parentb9dbf9517784084ee9496f9f17f9754c1d021a9e (diff)
clocksource: em_sti: Add DT support
Update the em-sti driver to support DT. Signed-off-by: Magnus Damm <damm@opensource.se> Cc: arnd@arndb.de Cc: horms@verge.net.au Cc: johnstul@us.ibm.com Cc: rjw@sisk.pl Cc: lethal@linux-sh.org Cc: gregkh@linuxfoundation.org Cc: olof@lixom.net Link: http://lkml.kernel.org/r/20120509143950.27521.7949.sendpatchset@w520 Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/clocksource/em_sti.c')
-rw-r--r--drivers/clocksource/em_sti.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/clocksource/em_sti.c b/drivers/clocksource/em_sti.c
index 719584a5952b..372051d1bba8 100644
--- a/drivers/clocksource/em_sti.c
+++ b/drivers/clocksource/em_sti.c
@@ -384,11 +384,18 @@ static int __devexit em_sti_remove(struct platform_device *pdev)
384 return -EBUSY; /* cannot unregister clockevent and clocksource */ 384 return -EBUSY; /* cannot unregister clockevent and clocksource */
385} 385}
386 386
387static const struct of_device_id em_sti_dt_ids[] __devinitconst = {
388 { .compatible = "renesas,em-sti", },
389 {},
390};
391MODULE_DEVICE_TABLE(of, em_sti_dt_ids);
392
387static struct platform_driver em_sti_device_driver = { 393static struct platform_driver em_sti_device_driver = {
388 .probe = em_sti_probe, 394 .probe = em_sti_probe,
389 .remove = __devexit_p(em_sti_remove), 395 .remove = __devexit_p(em_sti_remove),
390 .driver = { 396 .driver = {
391 .name = "em_sti", 397 .name = "em_sti",
398 .of_match_table = em_sti_dt_ids,
392 } 399 }
393}; 400};
394 401