Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Tang Dongxing and committed by
Nishanth Menon
ae9c0b68 0af2f6be

+1 -1
+1 -1
drivers/soc/ti/k3-ringacc.c
··· 1291 1291 1292 1292 mutex_lock(&k3_ringacc_list_lock); 1293 1293 list_for_each_entry(entry, &k3_ringacc_list, list) 1294 - if (entry->dev->of_node == ringacc_np) { 1294 + if (device_match_of_node(entry->dev, ringacc_np)) { 1295 1295 ringacc = entry; 1296 1296 break; 1297 1297 }