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

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>
This commit is contained in:
Tang Dongxing 2025-03-31 20:14:25 +08:00 committed by Nishanth Menon
parent 0af2f6be1b
commit ae9c0b6808

View 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;
}