diff options
author | Rob Herring (Arm) <robh@kernel.org> | 2024-07-31 21:12:45 +0200 |
---|---|---|
committer | Mathieu Poirier <mathieu.poirier@linaro.org> | 2024-08-13 17:23:11 +0200 |
commit | ba70bbfd28ab8aa09ed4b905b1b47580d5df17d6 (patch) | |
tree | 594dab56b79a5aeff423c50ccfeb6319c2c4a747 /drivers/remoteproc/imx_rproc.c | |
parent | remoteproc: imx_rproc: Merge TCML/U (diff) | |
download | linux-ba70bbfd28ab8aa09ed4b905b1b47580d5df17d6.tar.xz linux-ba70bbfd28ab8aa09ed4b905b1b47580d5df17d6.zip |
remoteproc: Use of_property_present()
Use of_property_present() to test for property presence rather than
of_(find|get)_property(). This is part of a larger effort to remove
callers of of_find_property() and similar functions. of_find_property()
leaks the DT struct property and data pointers which is a problem for
dynamically allocated nodes which may be freed.
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20240731191312.1710417-7-robh@kernel.org
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Diffstat (limited to 'drivers/remoteproc/imx_rproc.c')
-rw-r--r-- | drivers/remoteproc/imx_rproc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index 552fccebf7e2..9744b004bd77 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -812,7 +812,7 @@ static int imx_rproc_xtr_mbox_init(struct rproc *rproc) if (priv->tx_ch && priv->rx_ch) return 0; - if (!of_get_property(dev->of_node, "mbox-names", NULL)) + if (!of_property_present(dev->of_node, "mbox-names")) return 0; cl = &priv->cl; |