drivers/rtc: use of_match_ptr() macro
[firefly-linux-kernel-4.4.55.git] / drivers / rtc / rtc-stmp3xxx.c
index 739ef55694f4d30c6d7370ae66c5ad42e996430f..b2a8ed99b2bf8670a085da9632513467b2bbef93 100644 (file)
@@ -26,6 +26,7 @@
 #include <linux/rtc.h>
 #include <linux/slab.h>
 #include <linux/of_device.h>
+#include <linux/of.h>
 
 #include <mach/common.h>
 
@@ -280,7 +281,7 @@ static struct platform_driver stmp3xxx_rtcdrv = {
        .driver         = {
                .name   = "stmp3xxx-rtc",
                .owner  = THIS_MODULE,
-               .of_match_table = rtc_dt_ids,
+               .of_match_table = of_match_ptr(rtc_dt_ids),
        },
 };