clk: imx: imx8: Fix an error handling path if devm_clk_hw_register_mux_parent_data_ta...
[platform/kernel/linux-starfive.git] / drivers / clk / imx / clk-imx8-acm.c
index 87025a6..73b3b53 100644 (file)
@@ -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;
                }