|
@@ -202,12 +202,13 @@ static int emac_rockchip_remove(struct platform_device *pdev)
|
|
struct rockchip_priv_data *priv = netdev_priv(ndev);
|
|
struct rockchip_priv_data *priv = netdev_priv(ndev);
|
|
int err;
|
|
int err;
|
|
|
|
|
|
|
|
+ err = arc_emac_remove(ndev);
|
|
|
|
+
|
|
clk_disable_unprepare(priv->refclk);
|
|
clk_disable_unprepare(priv->refclk);
|
|
|
|
|
|
if (priv->regulator)
|
|
if (priv->regulator)
|
|
regulator_disable(priv->regulator);
|
|
regulator_disable(priv->regulator);
|
|
|
|
|
|
- err = arc_emac_remove(ndev);
|
|
|
|
free_netdev(ndev);
|
|
free_netdev(ndev);
|
|
return err;
|
|
return err;
|
|
}
|
|
}
|