Skip to contentSkip to conversation

rtc: mxc: Remove unneeded of_match_ptr()

PATCH Applied Fabio Estevam 2 participants 2 messages Mar 15, 2021 – Mar 16, 2021

Subsystems (2)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/1 rtc: mxc: Remove unneeded of_match_ptr()

i.MX is a DT-only platform, so of_match_ptr() can be safely removed.

Remove the unneeded of_match_ptr().

---
 drivers/rtc/rtc-mxc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/rtc/rtc-mxc.c +1 -1
index db57dda7ab97..0f08f22df869 100644
@@ -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,
 };
Signature · 1 line
2.25.1
maintainer Applied
#1 lore raw
Quoted 4 lines · Fabio Estevam

i.MX is a DT-only platform, so of_match_ptr() can be safely removed.

Remove the unneeded of_match_ptr().

Applied, thanks!

[1/1] rtc: mxc: Remove unneeded of_match_ptr()

      commit: 9346ff0bc6ff3c3a495d50a43b57df8fed7bc562

Best regards,

Signature · 1 line
Alexandre Belloni <[email protected]>