[PATCH] drm/imx: Use device_match_of_node()

shao.mingyin at zte.com.cn shao.mingyin at zte.com.cn
Fri Mar 28 09:08:22 UTC 2025


From: Tang Dongxing <tang.dongxing at zte.com.cn>

Replace the open-code with device_match_of_node().

Signed-off-by: Tang Dongxing <tang.dongxing at zte.com.cn>
Signed-off-by: Shao Mingyin <shao.mingyin at zte.com.cn>
---
 drivers/gpu/drm/imx/ipuv3/imx-drm-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/imx/ipuv3/imx-drm-core.c b/drivers/gpu/drm/imx/ipuv3/imx-drm-core.c
index ec5fd9a01f1e..099605137343 100644
--- a/drivers/gpu/drm/imx/ipuv3/imx-drm-core.c
+++ b/drivers/gpu/drm/imx/ipuv3/imx-drm-core.c
@@ -185,7 +185,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


More information about the dri-devel mailing list