rtc: mxc: Remove unneeded of_match_ptr()
authorFabio Estevam <festevam@gmail.com>
Mon, 15 Mar 2021 23:58:00 +0000 (20:58 -0300)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 16 Mar 2021 07:48:44 +0000 (08:48 +0100)
i.MX is a DT-only platform, so of_match_ptr() can be safely
removed.

Remove the unneeded of_match_ptr().

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20210315235800.200137-1-festevam@gmail.com
drivers/rtc/rtc-mxc.c

index db57dda7ab97b83c3e3a5d6b84ad92bf0cf6463f..0f08f22df869eed6882c5745022b926ebccdee58 100644 (file)
@@ -415,7 +415,7 @@ static int mxc_rtc_probe(struct platform_device *pdev)
 static struct platform_driver mxc_rtc_driver = {
        .driver = {
                   .name        = "mxc_rtc",
-                  .of_match_table = of_match_ptr(imx_rtc_dt_ids),
+                  .of_match_table = imx_rtc_dt_ids,
        },
        .probe = mxc_rtc_probe,
 };