of_node_to_fwnode() is irqdomain's reimplementation of the "officially"
defined of_fwnode_handle(). The former is in the process of being
removed, so use the latter instead.

Signed-off-by: Jiri Slaby (SUSE) <jirisl...@kernel.org>
Cc: Bjorn Andersson <anders...@kernel.org>
Cc: Mathieu Poirier <mathieu.poir...@linaro.org>
Cc: linux-remotep...@vger.kernel.org
---
 drivers/remoteproc/pru_rproc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/remoteproc/pru_rproc.c b/drivers/remoteproc/pru_rproc.c
index 1656574b7317..4a4eb9c0b133 100644
--- a/drivers/remoteproc/pru_rproc.c
+++ b/drivers/remoteproc/pru_rproc.c
@@ -563,7 +563,7 @@ static int pru_handle_intrmap(struct rproc *rproc)
                return -ENODEV;
        }
 
-       fwspec.fwnode = of_node_to_fwnode(irq_parent);
+       fwspec.fwnode = of_fwnode_handle(irq_parent);
        fwspec.param_count = 3;
        for (i = 0; i < pru->evt_count; i++) {
                fwspec.param[0] = rsc->pru_intc_map[i].event;
-- 
2.49.0


Reply via email to