Skip to content

Commit fc0830f

Browse files
Magnus DammKAGA-KOKO
authored andcommitted
clocksource: em_sti: Add DT support
Update the em-sti driver to support DT. Signed-off-by: Magnus Damm <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Link: http://lkml.kernel.org/r/20120509143950.27521.7949.sendpatchset@w520 Signed-off-by: Thomas Gleixner <[email protected]>
1 parent b9dbf95 commit fc0830f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/clocksource/em_sti.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,11 +384,18 @@ static int __devexit em_sti_remove(struct platform_device *pdev)
384384
return -EBUSY; /* cannot unregister clockevent and clocksource */
385385
}
386386

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+
387393
static struct platform_driver em_sti_device_driver = {
388394
.probe = em_sti_probe,
389395
.remove = __devexit_p(em_sti_remove),
390396
.driver = {
391397
.name = "em_sti",
398+
.of_match_table = em_sti_dt_ids,
392399
}
393400
};
394401

0 commit comments

Comments
 (0)