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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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@xxxxxxxxxx>

Reviewed-by: Peng Fan <peng.fan@xxxxxxx>
> ---
>  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





[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux