linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH linux-next] drm/imx: Use device_match_of_node()
@ 2022-11-17  7:11 ye.xingchen
  2022-11-20 10:54 ` kernel test robot
  2022-11-28  9:03 ` Ahmad Fatoum
  0 siblings, 2 replies; 3+ messages in thread
From: ye.xingchen @ 2022-11-17  7:11 UTC (permalink / raw)
  To: p.zabel
  Cc: airlied, daniel, shawnguo, s.hauer, kernel, festevam, linux-imx,
	dri-devel, linux-arm-kernel, linux-kernel

From: ye xingchen <ye.xingchen@zte.com.cn>

Replace the open-code with device_match_of_node().

Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
---
 drivers/gpu/drm/imx/imx-drm-core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/imx/imx-drm-core.c b/drivers/gpu/drm/imx/imx-drm-core.c
index e060fa6cbcb9..2e4f5af894b0 100644
--- a/drivers/gpu/drm/imx/imx-drm-core.c
+++ b/drivers/gpu/drm/imx/imx-drm-core.c
@@ -182,7 +182,7 @@ static int compare_of(struct device *dev, void *data)
 	if (strcmp(dev->driver->name, "imx-ipuv3-crtc") == 0) {
 		struct ipu_client_platformdata *pdata = dev->platform_data;

-		return pdata->of_node == np;
+		return device_match_of_node(pdata, np);
 	}

 	/* Special case for LDB, one device for two channels */
@@ -191,7 +191,7 @@ static int compare_of(struct device *dev, void *data)
 		of_node_put(np);
 	}

-	return dev->of_node == np;
+	return device_match_of_node(dev, np);
 }

 static int imx_drm_bind(struct device *dev)
-- 
2.25.1

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

end of thread, other threads:[~2022-11-28  9:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-17  7:11 [PATCH linux-next] drm/imx: Use device_match_of_node() ye.xingchen
2022-11-20 10:54 ` kernel test robot
2022-11-28  9:03 ` Ahmad Fatoum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).