Commit a6acf689 authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller

dwc_eth_qos: fix missing clk_disable_unprepare() on error in dwceqos_probe()

Fix missing clk_disable_unprepare() call before return
from dwceqos_probe() in the error handling case of invalid
fixed-link.
Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 379672de
...@@ -2877,7 +2877,7 @@ static int dwceqos_probe(struct platform_device *pdev) ...@@ -2877,7 +2877,7 @@ static int dwceqos_probe(struct platform_device *pdev)
ret = of_phy_register_fixed_link(lp->pdev->dev.of_node); ret = of_phy_register_fixed_link(lp->pdev->dev.of_node);
if (ret < 0) { if (ret < 0) {
dev_err(&pdev->dev, "invalid fixed-link"); dev_err(&pdev->dev, "invalid fixed-link");
goto err_out_unregister_netdev; goto err_out_unregister_clk_notifier;
} }
lp->phy_node = of_node_get(lp->pdev->dev.of_node); lp->phy_node = of_node_get(lp->pdev->dev.of_node);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment