mirror of
https://github.com/torvalds/linux.git
synced 2026-05-29 17:43:52 +02:00
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:
parent
0af2f6be1b
commit
ae9c0b6808
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user