diff mbox series

soc: ti: k3-ringacc: Use device_match_of_node()

Message ID 20250331201425296l4h98bZjxHzs08fdvHrGO@zte.com.cn (mailing list archive)
State New
Headers show
Series soc: ti: k3-ringacc: Use device_match_of_node() | expand

Commit Message

shao.mingyin@zte.com.cn March 31, 2025, 12:14 p.m. UTC
From: Tang Dongxing <tang.dongxing@zte.com.cn>

Replace the open-code with device_match_of_node().

Signed-off-by: Tang Dongxing <tang.dongxing@zte.com.cn>
Signed-off-by: Shao Mingyin <shao.mingyin@zte.com.cn>
---
 drivers/soc/ti/k3-ringacc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/soc/ti/k3-ringacc.c b/drivers/soc/ti/k3-ringacc.c
index 82a15cad1c6c..7602b8a909b0 100644
--- a/drivers/soc/ti/k3-ringacc.c
+++ b/drivers/soc/ti/k3-ringacc.c
@@ -1291,7 +1291,7 @@  struct k3_ringacc *of_k3_ringacc_get_by_phandle(struct device_node *np,

 	mutex_lock(&k3_ringacc_list_lock);
 	list_for_each_entry(entry, &k3_ringacc_list, list)
-		if (entry->dev->of_node == ringacc_np) {
+		if (device_match_of_node(entry->dev, ringacc_np)) {
 			ringacc = entry;
 			break;
 		}