]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers/rtc/rtc-stmp3xxx.c: remove redundant of_match_ptr
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 5 Nov 2013 05:57:23 +0000 (16:57 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 5 Nov 2013 05:57:23 +0000 (16:57 +1100)
The data structure of_match_ptr() protects is always compiled in.
Hence of_match_ptr() is not needed.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/rtc-stmp3xxx.c

index 26019531db15a2f481dc87da6e6c76e085e1a06c..ea96492357b0339c0b01ad18a4505f9418ed6bd5 100644 (file)
@@ -343,7 +343,7 @@ static struct platform_driver stmp3xxx_rtcdrv = {
                .name   = "stmp3xxx-rtc",
                .owner  = THIS_MODULE,
                .pm     = &stmp3xxx_rtc_pm_ops,
-               .of_match_table = of_match_ptr(rtc_dt_ids),
+               .of_match_table = rtc_dt_ids,
        },
 };