soc: ti: k3-ringacc: Use device_match_of_node()
authorTang Dongxing <tang.dongxing@zte.com.cn>
Mon, 31 Mar 2025 12:14:25 +0000 (20:14 +0800)
committerNishanth Menon <nm@ti.com>
Fri, 18 Apr 2025 15:36:39 +0000 (10:36 -0500)
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>
Link: https://lore.kernel.org/r/20250331201425296l4h98bZjxHzs08fdvHrGO@zte.com.cn
Signed-off-by: Nishanth Menon <nm@ti.com>
drivers/soc/ti/k3-ringacc.c

index 82a15cad1c6c43775de0a778b4caf8e79e04bbca..7602b8a909b05854bea90673614312aa4a2b5b26 100644 (file)
@@ -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;
                }