diff options
| author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2023-09-14 22:31:03 +0200 |
|---|---|---|
| committer | Abel Vesa <abel.vesa@linaro.org> | 2023-10-04 11:13:58 +0300 |
| commit | 9a0108acdb1b6189dcc8f9318edfc6b7e0281df4 (patch) | |
| tree | 5a02bea20a85cb0e847c41a136e1a6bdbc30b6cd /drivers/clk/imx | |
| parent | 156624e2cf815ce98fad5a24f04370f4459ae6f4 (diff) | |
| download | linux-9a0108acdb1b6189dcc8f9318edfc6b7e0281df4.tar.gz linux-9a0108acdb1b6189dcc8f9318edfc6b7e0281df4.tar.bz2 linux-9a0108acdb1b6189dcc8f9318edfc6b7e0281df4.zip | |
clk: imx: imx8: Fix an error handling path if devm_clk_hw_register_mux_parent_data_table() fails
If a devm_clk_hw_register_mux_parent_data_table() call fails, it is likely
that the probe should fail with an error code.
Set 'ret' before leaving the function.
Fixes: d3a0946d7ac9 ("clk: imx: imx8: add audio clock mux driver")
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
Diffstat (limited to 'drivers/clk/imx')
| -rw-r--r-- | drivers/clk/imx/clk-imx8-acm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/imx/clk-imx8-acm.c b/drivers/clk/imx/clk-imx8-acm.c index 87025a6772d0..73b3b5354951 100644 --- a/drivers/clk/imx/clk-imx8-acm.c +++ b/drivers/clk/imx/clk-imx8-acm.c @@ -373,6 +373,7 @@ static int imx8_acm_clk_probe(struct platform_device *pdev) sels[i].shift, sels[i].width, 0, NULL, NULL); if (IS_ERR(hws[sels[i].clkid])) { + ret = PTR_ERR(hws[sels[i].clkid]); pm_runtime_disable(&pdev->dev); goto err_clk_register; } |
