Loading drivers/rtc/rtc-mv.c +9 −0 Original line number Diff line number Diff line Loading @@ -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> Loading Loading @@ -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), }, }; Loading Loading
drivers/rtc/rtc-mv.c +9 −0 Original line number Diff line number Diff line Loading @@ -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> Loading Loading @@ -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), }, }; Loading