Skip to content

Commit 9a0108a

Browse files
tititiou36abelvesa
authored andcommitted
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: d3a0946 ("clk: imx: imx8: add audio clock mux driver") Reviewed-by: Peng Fan <[email protected]> Signed-off-by: Christophe JAILLET <[email protected]> Signed-off-by: Abel Vesa <[email protected]>
1 parent 156624e commit 9a0108a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/clk/imx/clk-imx8-acm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ static int imx8_acm_clk_probe(struct platform_device *pdev)
373373
sels[i].shift, sels[i].width,
374374
0, NULL, NULL);
375375
if (IS_ERR(hws[sels[i].clkid])) {
376+
ret = PTR_ERR(hws[sels[i].clkid]);
376377
pm_runtime_disable(&pdev->dev);
377378
goto err_clk_register;
378379
}

0 commit comments

Comments
 (0)