Skip to content

Commit

Permalink
ARM: kirkwood: rtc-mv devicetree bindings
Browse files Browse the repository at this point in the history
Trivial conversion to devicetree.

Signed-off-by: Jason Cooper <jason@lakedaemon.net>
  • Loading branch information
Jason Cooper committed Mar 16, 2012
1 parent 163f2ce commit ea983ed
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions drivers/rtc/rtc-mv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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),
},
};

Expand Down

0 comments on commit ea983ed

Please sign in to comment.