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

remoteproc: core: Use device_match_of_node()

Replace the open-code with device_match_of_node().

Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Link: https://lore.kernel.org/r/202211171541061366938@zte.com.cn
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>

authored by

ye xingchen and committed by
Mathieu Poirier
e63ae3f8 ee18f271

+1 -1
+1 -1
drivers/remoteproc/remoteproc_core.c
··· 2112 2112 2113 2113 rcu_read_lock(); 2114 2114 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)) { 2116 2116 /* prevent underlying implementation from being removed */ 2117 2117 if (!try_module_get(r->dev.parent->driver->owner)) { 2118 2118 dev_err(&r->dev, "can't get owner\n");