Skip to content

Commit ae9c0b6

Browse files
Tang Dongxingnmenon
authored andcommitted
soc: ti: k3-ringacc: Use device_match_of_node()
Replace the open-code with device_match_of_node(). Signed-off-by: Tang Dongxing <[email protected]> Signed-off-by: Shao Mingyin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Nishanth Menon <[email protected]>
1 parent 0af2f6b commit ae9c0b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/soc/ti/k3-ringacc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1291,7 +1291,7 @@ struct k3_ringacc *of_k3_ringacc_get_by_phandle(struct device_node *np,
12911291

12921292
mutex_lock(&k3_ringacc_list_lock);
12931293
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)) {
12951295
ringacc = entry;
12961296
break;
12971297
}

0 commit comments

Comments
 (0)