]> git.karo-electronics.de Git - linux-beck.git/commitdiff
clocksource: em_sti: Add DT support
authorMagnus Damm <magnus.damm@gmail.com>
Wed, 9 May 2012 14:39:50 +0000 (23:39 +0900)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 25 May 2012 09:32:06 +0000 (11:32 +0200)
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>
drivers/clocksource/em_sti.c

index 719584a5952bc998538e7a4d4fdf70c1cba6350b..372051d1bba87b5796a68a543a5d628c61317642 100644 (file)
@@ -384,11 +384,18 @@ static int __devexit em_sti_remove(struct platform_device *pdev)
        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,
        }
 };