Messages in this thread Patch in this message |  | | | From | Magnus Damm <> | | Date | Wed, 09 May 2012 23:39:50 +0900 | | 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, } };
|  |