mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 12:14:06 +00:00
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>
This commit is contained in:
parent
ee18f2715e
commit
e63ae3f836
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue