|
@@ -289,7 +289,16 @@ static int meson8b_dwmac_probe(struct platform_device *pdev)
|
|
|
|
|
|
plat_dat->bsp_priv = dwmac;
|
|
plat_dat->bsp_priv = dwmac;
|
|
|
|
|
|
- return stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res);
|
|
|
|
|
|
+ ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res);
|
|
|
|
+ if (ret)
|
|
|
|
+ goto err_clk_disable;
|
|
|
|
+
|
|
|
|
+ return 0;
|
|
|
|
+
|
|
|
|
+err_clk_disable:
|
|
|
|
+ clk_disable_unprepare(dwmac->m25_div_clk);
|
|
|
|
+
|
|
|
|
+ return ret;
|
|
}
|
|
}
|
|
|
|
|
|
static int meson8b_dwmac_remove(struct platform_device *pdev)
|
|
static int meson8b_dwmac_remove(struct platform_device *pdev)
|