Commit e63ae3f8 authored by ye xingchen's avatar ye xingchen Committed by Mathieu Poirier

remoteproc: core: Use device_match_of_node()

Replace the open-code with device_match_of_node().
Signed-off-by: default avatarye xingchen <ye.xingchen@zte.com.cn>
Link: https://lore.kernel.org/r/202211171541061366938@zte.com.cnSigned-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
parent ee18f271
......@@ -2112,7 +2112,7 @@ struct rproc *rproc_get_by_phandle(phandle phandle)
rcu_read_lock();
list_for_each_entry_rcu(r, &rproc_list, node) {
if (r->dev.parent && r->dev.parent->of_node == np) {
if (r->dev.parent && device_match_of_node(r->dev.parent, np)) {
/* prevent underlying implementation from being removed */
if (!try_module_get(r->dev.parent->driver->owner)) {
dev_err(&r->dev, "can't get owner\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment