Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Christophe JAILLET and committed by
Abel Vesa
9a0108ac 156624e2

+1
+1
drivers/clk/imx/clk-imx8-acm.c
··· 373 373 sels[i].shift, sels[i].width, 374 374 0, NULL, NULL); 375 375 if (IS_ERR(hws[sels[i].clkid])) { 376 + ret = PTR_ERR(hws[sels[i].clkid]); 376 377 pm_runtime_disable(&pdev->dev); 377 378 goto err_clk_register; 378 379 }