Jelajahi Sumber

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: Chaithrika U S <chaithrika@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
chaithrika@ti.com 16 tahun lalu
induk
melakukan
ab0a8e6c66
1 mengubah file dengan 0 tambahan dan 1 penghapusan
  1. 0 1
      drivers/net/davinci_emac.c

+ 0 - 1
drivers/net/davinci_emac.c

@@ -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);