Skip to content

Commit 1ca04f2

Browse files
Dan Carpentermathieupoirier
authored andcommitted
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: de59869 ("remoteproc: stm32: Allow hold boot management by the SCMI reset controller") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Reviewed-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com> Link: https://lore.kernel.org/r/6f457246-6446-42cb-81ae-d37221d726b1@kili.mountain Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
1 parent de59869 commit 1ca04f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/remoteproc/stm32_rproc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ static int stm32_rproc_parse_dt(struct platform_device *pdev,
755755

756756
ddata->hold_boot_rst = devm_reset_control_get_optional(dev, "hold_boot");
757757
if (IS_ERR(ddata->hold_boot_rst))
758-
return dev_err_probe(dev, PTR_ERR(ddata->rst),
758+
return dev_err_probe(dev, PTR_ERR(ddata->hold_boot_rst),
759759
"failed to get hold_boot reset\n");
760760

761761
if (!ddata->hold_boot_rst && IS_ENABLED(CONFIG_HAVE_ARM_SMCCC)) {

0 commit comments

Comments
 (0)