[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20250328170822125BzIvZeYNIQbV1oqrHVKxG@zte.com.cn>
Date: Fri, 28 Mar 2025 17:08:22 +0800 (CST)
From: <shao.mingyin@....com.cn>
To: <p.zabel@...gutronix.de>
Cc: <dri-devel@...ts.freedesktop.org>, <linux-kernel@...r.kernel.org>,
<yang.yang29@....com.cn>, <xu.xin16@....com.cn>,
<ye.xingchen@....com.cn>, <tang.dongxing@....com.cn>
Subject: [PATCH] drm/imx: Use device_match_of_node()
From: Tang Dongxing <tang.dongxing@....com.cn>
Replace the open-code with device_match_of_node().
Signed-off-by: Tang Dongxing <tang.dongxing@....com.cn>
Signed-off-by: Shao Mingyin <shao.mingyin@....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
Powered by blists - more mailing lists