diff options
author | Jason Cooper <jason@lakedaemon.net> | 2012-03-06 18:53:57 -0500 |
---|---|---|
committer | Jason Cooper <jason@lakedaemon.net> | 2012-03-16 00:28:42 -0400 |
commit | ea983ede1195982c64220e9030c28ff111c8655c (patch) | |
tree | cefd082f03093abcec2ea720163c9b2a71494bd7 /drivers/rtc/rtc-mv.c | |
parent | 163f2cea673a4ae831ad2cd26d8f01977c3add93 (diff) |
ARM: kirkwood: rtc-mv devicetree bindings
Trivial conversion to devicetree.
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Diffstat (limited to 'drivers/rtc/rtc-mv.c')
-rw-r--r-- | drivers/rtc/rtc-mv.c | 9 |
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 @@ | |||
12 | #include <linux/bcd.h> | 12 | #include <linux/bcd.h> |
13 | #include <linux/io.h> | 13 | #include <linux/io.h> |
14 | #include <linux/platform_device.h> | 14 | #include <linux/platform_device.h> |
15 | #include <linux/of.h> | ||
15 | #include <linux/delay.h> | 16 | #include <linux/delay.h> |
16 | #include <linux/gfp.h> | 17 | #include <linux/gfp.h> |
17 | #include <linux/module.h> | 18 | #include <linux/module.h> |
@@ -294,11 +295,19 @@ static int __exit mv_rtc_remove(struct platform_device *pdev) | |||
294 | return 0; | 295 | return 0; |
295 | } | 296 | } |
296 | 297 | ||
298 | #ifdef CONFIG_OF | ||
299 | static struct of_device_id rtc_mv_of_match_table[] = { | ||
300 | { .compatible = "mrvl,orion-rtc", }, | ||
301 | {} | ||
302 | }; | ||
303 | #endif | ||
304 | |||
297 | static struct platform_driver mv_rtc_driver = { | 305 | static struct platform_driver mv_rtc_driver = { |
298 | .remove = __exit_p(mv_rtc_remove), | 306 | .remove = __exit_p(mv_rtc_remove), |
299 | .driver = { | 307 | .driver = { |
300 | .name = "rtc-mv", | 308 | .name = "rtc-mv", |
301 | .owner = THIS_MODULE, | 309 | .owner = THIS_MODULE, |
310 | .of_match_table = of_match_ptr(rtc_mv_of_match_table), | ||
302 | }, | 311 | }, |
303 | }; | 312 | }; |
304 | 313 | ||