From: Hiago De Franco <[email protected]> The "clocks" device tree property is not mandatory, and if not provided Linux will shut down the remote processor power domain during boot if it is not present, even if it is running (e.g. it was started by U-Boot's bootaux command).
Use the optional devm_clk_get instead. Signed-off-by: Hiago De Franco <[email protected]> --- drivers/remoteproc/imx_rproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index 74299af1d7f1..45b5b23980ec 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -1033,7 +1033,7 @@ static int imx_rproc_clk_enable(struct imx_rproc *priv) if (dcfg->method == IMX_RPROC_NONE) return 0; - priv->clk = devm_clk_get(dev, NULL); + priv->clk = devm_clk_get_optional(dev, NULL); if (IS_ERR(priv->clk)) { dev_err(dev, "Failed to get clock\n"); return PTR_ERR(priv->clk); -- 2.39.5