diff options
author | ye xingchen <ye.xingchen@zte.com.cn> | 2022-11-17 10:41:06 +0300 |
---|---|---|
committer | Mathieu Poirier <mathieu.poirier@linaro.org> | 2022-11-21 20:15:03 +0300 |
commit | e63ae3f836e66bf956072a0d6dd09fbe2d45bf7a (patch) | |
tree | 3282f0c3384b057944a016a9afc8eb4a7b0354e0 /drivers/remoteproc | |
parent | ee18f2715e85f4ef051851a0c4831ee7ad7d83b3 (diff) | |
download | linux-e63ae3f836e66bf956072a0d6dd09fbe2d45bf7a.tar.xz |
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>
Diffstat (limited to 'drivers/remoteproc')
-rw-r--r-- | drivers/remoteproc/remoteproc_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c index cb1d414a2389..11c165ddf1fc 100644 --- a/drivers/remoteproc/remoteproc_core.c +++ b/drivers/remoteproc/remoteproc_core.c @@ -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"); |