Commit 1ca04f21 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mathieu Poirier

remoteproc: stm32: Fix error code in stm32_rproc_parse_dt()

There is a cut and paste bug so this code was returning the wrong
variable.  It should have been "ddata->hold_boot_rst" instead of
"ddata->rst".

Fixes: de598695 ("remoteproc: stm32: Allow hold boot management by the SCMI reset controller")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: default avatarArnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Link: https://lore.kernel.org/r/6f457246-6446-42cb-81ae-d37221d726b1@kili.mountainSigned-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
parent de598695
...@@ -755,7 +755,7 @@ static int stm32_rproc_parse_dt(struct platform_device *pdev, ...@@ -755,7 +755,7 @@ static int stm32_rproc_parse_dt(struct platform_device *pdev,
ddata->hold_boot_rst = devm_reset_control_get_optional(dev, "hold_boot"); ddata->hold_boot_rst = devm_reset_control_get_optional(dev, "hold_boot");
if (IS_ERR(ddata->hold_boot_rst)) if (IS_ERR(ddata->hold_boot_rst))
return dev_err_probe(dev, PTR_ERR(ddata->rst), return dev_err_probe(dev, PTR_ERR(ddata->hold_boot_rst),
"failed to get hold_boot reset\n"); "failed to get hold_boot reset\n");
if (!ddata->hold_boot_rst && IS_ENABLED(CONFIG_HAVE_ARM_SMCCC)) { if (!ddata->hold_boot_rst && IS_ENABLED(CONFIG_HAVE_ARM_SMCCC)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment