All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rtc: mxc: Remove unneeded of_match_ptr()
@ 2021-03-15 23:58 Fabio Estevam
  2021-03-16  7:49 ` Alexandre Belloni
  0 siblings, 1 reply; 2+ messages in thread
From: Fabio Estevam @ 2021-03-15 23:58 UTC (permalink / raw)
  To: alexandre.belloni; +Cc: linux-rtc, Fabio Estevam

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>
---
 drivers/rtc/rtc-mxc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/rtc-mxc.c b/drivers/rtc/rtc-mxc.c
index db57dda7ab97..0f08f22df869 100644
--- a/drivers/rtc/rtc-mxc.c
+++ b/drivers/rtc/rtc-mxc.c
@@ -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,
 };
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] rtc: mxc: Remove unneeded of_match_ptr()
  2021-03-15 23:58 [PATCH] rtc: mxc: Remove unneeded of_match_ptr() Fabio Estevam
@ 2021-03-16  7:49 ` Alexandre Belloni
  0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Belloni @ 2021-03-16  7:49 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: Alexandre Belloni, linux-rtc

On Mon, 15 Mar 2021 20:58:00 -0300, Fabio Estevam wrote:
> 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,
-- 
Alexandre Belloni <alexandre.belloni@bootlin.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-03-16  7:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-15 23:58 [PATCH] rtc: mxc: Remove unneeded of_match_ptr() Fabio Estevam
2021-03-16  7:49 ` Alexandre Belloni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.