summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Cooper <jason@lakedaemon.net>2012-03-07 00:53:57 +0100
committerJason Cooper <jason@lakedaemon.net>2012-03-16 05:28:42 +0100
commitea983ede1195982c64220e9030c28ff111c8655c (patch)
treecefd082f03093abcec2ea720163c9b2a71494bd7
parentARM: kirkwood: fdt: define uart[01] as disabled, enable uart0 (diff)
downloadlinux-ea983ede1195982c64220e9030c28ff111c8655c.tar.xz
linux-ea983ede1195982c64220e9030c28ff111c8655c.zip
ARM: kirkwood: rtc-mv devicetree bindings
Trivial conversion to devicetree. Signed-off-by: Jason Cooper <jason@lakedaemon.net>
-rw-r--r--drivers/rtc/rtc-mv.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-mv.c b/drivers/rtc/rtc-mv.c
index 768e2edb9678..0dd8421d41c3 100644
--- a/drivers/rtc/rtc-mv.c
+++ b/drivers/rtc/rtc-mv.c
@@ -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),
},
};