Skip to content

Commit

Permalink
TI DaVinci EMAC : Fix rmmod error
Browse files Browse the repository at this point in the history
clk_disable was called twice in the remove function.
Correct this so that the driver module unloads without error.

Signed-off-by: Chaithrika U S <chaithrika@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
chaithrika@ti.com authored and David S. Miller committed Jun 18, 2009
1 parent 31278e7 commit ab0a8e6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/net/davinci_emac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ab0a8e6

Please sign in to comment.