Skip to content

Commit e63ae3f

Browse files
ye xingchenmathieupoirier
authored andcommitted
remoteproc: core: Use device_match_of_node()
Replace the open-code with device_match_of_node(). Signed-off-by: ye xingchen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mathieu Poirier <[email protected]>
1 parent ee18f27 commit e63ae3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/remoteproc/remoteproc_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2112,7 +2112,7 @@ struct rproc *rproc_get_by_phandle(phandle phandle)
21122112

21132113
rcu_read_lock();
21142114
list_for_each_entry_rcu(r, &rproc_list, node) {
2115-
if (r->dev.parent && r->dev.parent->of_node == np) {
2115+
if (r->dev.parent && device_match_of_node(r->dev.parent, np)) {
21162116
/* prevent underlying implementation from being removed */
21172117
if (!try_module_get(r->dev.parent->driver->owner)) {
21182118
dev_err(&r->dev, "can't get owner\n");

0 commit comments

Comments
 (0)