Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Magnus Damm and committed by
Thomas Gleixner
fc0830fe b9dbf951

+7
+7
drivers/clocksource/em_sti.c
··· 384 384 return -EBUSY; /* cannot unregister clockevent and clocksource */ 385 385 } 386 386 387 + static const struct of_device_id em_sti_dt_ids[] __devinitconst = { 388 + { .compatible = "renesas,em-sti", }, 389 + {}, 390 + }; 391 + MODULE_DEVICE_TABLE(of, em_sti_dt_ids); 392 + 387 393 static struct platform_driver em_sti_device_driver = { 388 394 .probe = em_sti_probe, 389 395 .remove = __devexit_p(em_sti_remove), 390 396 .driver = { 391 397 .name = "em_sti", 398 + .of_match_table = em_sti_dt_ids, 392 399 } 393 400 }; 394 401