Skip to contentSkip to conversation

TI DaVinci EMAC : Fix rmmod error

PATCH In review Chaithrika U S 2 participants 2 messages Jun 17, 2009 – Jun 19, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
Applies to Linus' kernel tree

 drivers/net/davinci_emac.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/net/davinci_emac.c +0 -1
index 0e9b9f9..2df8fb0 100644
@@ -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);
Signature · 1 line
1.5.6
#1 lore raw
Quoted 4 lines · Chaithrika U S

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

(TI DaVinci arch maintainer)

Will pull into DaVinci git until it merges upstream.

Kevin

Quoted 25 lines

---
Applies to Linus' kernel tree

 drivers/net/davinci_emac.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/net/davinci_emac.c +0 -1
index 0e9b9f9..2df8fb0 100644
@@ -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);
Signature · 6 lines
1.5.6

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source