Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab0a8e6c authored by chaithrika@ti.com's avatar chaithrika@ti.com Committed by David S. Miller
Browse files

TI DaVinci EMAC : Fix rmmod error



clk_disable was called twice in the remove function.
Correct this so that the driver module unloads without error.

Signed-off-by: default avatarChaithrika U S <chaithrika@ti.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 31278e71
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -2767,7 +2767,6 @@ static int __devexit davinci_emac_remove(struct platform_device *pdev)

	dev_notice(&ndev->dev, "DaVinci EMAC: davinci_emac_remove()\n");

	clk_disable(emac_clk);
	platform_set_drvdata(pdev, NULL);
	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
	mdiobus_unregister(priv->mii_bus);