[PATCH linux-next] drm/bridge: Use device_match_of_node()

From: ye.xingchen
Date: Thu Nov 17 2022 - 01:32:10 EST


From: ye xingchen <ye.xingchen@xxxxxxxxxx>

Replace the open-code with device_match_of_node().

Signed-off-by: ye xingchen <ye.xingchen@xxxxxxxxxx>
---
drivers/gpu/drm/drm_bridge.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/drm_bridge.c b/drivers/gpu/drm/drm_bridge.c
index 1545c50fd1c8..4a8cafe2b130 100644
--- a/drivers/gpu/drm/drm_bridge.c
+++ b/drivers/gpu/drm/drm_bridge.c
@@ -1307,7 +1307,7 @@ struct drm_bridge *of_drm_find_bridge(struct device_node *np)
mutex_lock(&bridge_lock);

list_for_each_entry(bridge, &bridge_list, list) {
- if (bridge->of_node == np) {
+ if (device_match_of_node(bridge, np)) {
mutex_unlock(&bridge_lock);
return bridge;
}
--
2.25.1