[PATCH 2/2] clk: imx: imx8: Fix error code in probe

Peng Fan peng.fan at nxp.com
Tue Oct 3 02:49:08 PDT 2023


> Subject: [PATCH 2/2] clk: imx: imx8: Fix error code in probe
> 
> Preserve the error code from devm_clk_hw_register_mux_parent_data_table()
> instead of returning success.
> 
> Fixes: d3a0946d7ac9 ("clk: imx: imx8: add audio clock mux driver")
> Signed-off-by: Dan Carpenter <dan.carpenter at linaro.org>

Reviewed-by: Peng Fan <peng.fan at nxp.com>
> ---
>  drivers/clk/imx/clk-imx8-acm.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/clk/imx/clk-imx8-acm.c b/drivers/clk/imx/clk-imx8-acm.c
> index 83019b986622..550ceac45ff2 100644
> --- a/drivers/clk/imx/clk-imx8-acm.c
> +++ b/drivers/clk/imx/clk-imx8-acm.c
> @@ -372,6 +372,7 @@ static int imx8_acm_clk_probe(struct
> platform_device *pdev)
> 
> 	0, NULL, NULL);
>  		if (IS_ERR(hws[sels[i].clkid])) {
>  			pm_runtime_disable(&pdev->dev);
> +			ret = PTR_ERR(hws[sels[i].clkid]);
>  			goto err_clk_register;
>  		}
>  	}
> --
> 2.39.2




More information about the linux-arm-kernel mailing list