ARM: kirkwood: rtc-mv devicetree bindings
authorJason Cooper <jason@lakedaemon.net>
Tue, 6 Mar 2012 23:53:57 +0000 (23:53 +0000)
committerJason Cooper <jason@lakedaemon.net>
Fri, 16 Mar 2012 04:28:42 +0000 (04:28 +0000)
Trivial conversion to devicetree.

Signed-off-by: Jason Cooper <jason@lakedaemon.net>
drivers/rtc/rtc-mv.c

index 768e2edb96780d2c232c3308cc015e57c16d0d8e..0dd8421d41c37963fefd4ad653e05c35032632d8 100644 (file)
@@ -12,6 +12,7 @@
 #include <linux/bcd.h>
 #include <linux/io.h>
 #include <linux/platform_device.h>
+#include <linux/of.h>
 #include <linux/delay.h>
 #include <linux/gfp.h>
 #include <linux/module.h>
@@ -294,11 +295,19 @@ static int __exit mv_rtc_remove(struct platform_device *pdev)
        return 0;
 }
 
+#ifdef CONFIG_OF
+static struct of_device_id rtc_mv_of_match_table[] = {
+       { .compatible = "mrvl,orion-rtc", },
+       {}
+};
+#endif
+
 static struct platform_driver mv_rtc_driver = {
        .remove         = __exit_p(mv_rtc_remove),
        .driver         = {
                .name   = "rtc-mv",
                .owner  = THIS_MODULE,
+               .of_match_table = of_match_ptr(rtc_mv_of_match_table),
        },
 };
 
This page took 0.026951 seconds and 5 git commands to generate.