TI DaVinci EMAC : Fix rmmod error
authorchaithrika@ti.com <chaithrika@ti.com>
Wed, 17 Jun 2009 01:28:54 +0000 (01:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Jun 2009 07:29:08 +0000 (00:29 -0700)
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>
drivers/net/davinci_emac.c

index 0e9b9f9632c1d5a6f535bb82280f4ed9bdf9b847..2df8fb0af701a0e081d8fee4820bb4047e2d6a6c 100644 (file)
@@ -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);