]> Git Repo - linux.git/commitdiff
remoteproc: stm32: Fix error code in stm32_rproc_parse_dt()
authorDan Carpenter <[email protected]>
Mon, 22 May 2023 07:46:11 +0000 (10:46 +0300)
committerMathieu Poirier <[email protected]>
Tue, 23 May 2023 19:50:48 +0000 (13:50 -0600)
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: de598695a2ad ("remoteproc: stm32: Allow hold boot management by the SCMI reset controller")
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Arnaud Pouliquen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mathieu Poirier <[email protected]>
drivers/remoteproc/stm32_rproc.c

index 0e322697d2101fefa32d28ba97eae70575ca50a9..a7457777aae43ffe30335bd6101067e9a11f1fe7 100644 (file)
@@ -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");
        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");
 
        if (!ddata->hold_boot_rst && IS_ENABLED(CONFIG_HAVE_ARM_SMCCC)) {
This page took 0.058605 seconds and 4 git commands to generate.