[PATCH] drm: adp: Use device_match_of_node()
shao.mingyin at zte.com.cn
shao.mingyin at zte.com.cn
Fri Mar 28 09:07:05 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/adp/adp_drv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/adp/adp_drv.c b/drivers/gpu/drm/adp/adp_drv.c
index c98c647f981d..0abb56ce2c34 100644
--- a/drivers/gpu/drm/adp/adp_drv.c
+++ b/drivers/gpu/drm/adp/adp_drv.c
@@ -553,7 +553,7 @@ static const struct component_master_ops adp_master_ops = {
static int compare_dev(struct device *dev, void *data)
{
- return dev->of_node == data;
+ return device_match_of_node(dev, data);
}
static int adp_probe(struct platform_device *pdev)
--
2.25.1
More information about the dri-devel
mailing list