summaryrefslogtreecommitdiff
path: root/target/linux/brcm63xx
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2009-06-04 10:04:53 +0000
committerFlorian Fainelli <florian@openwrt.org>2009-06-04 10:04:53 +0000
commit8f84508c25734905ab25b0de62f31f8df46b18a1 (patch)
tree5ad8d58874cc85ad8e428fcc38d208ce1130064f /target/linux/brcm63xx
parent50936e1aa5218949161a9c7791367cfe08fc40cb (diff)
downloadmtk-20170518-8f84508c25734905ab25b0de62f31f8df46b18a1.zip
mtk-20170518-8f84508c25734905ab25b0de62f31f8df46b18a1.tar.gz
mtk-20170518-8f84508c25734905ab25b0de62f31f8df46b18a1.tar.bz2
fix ethernet driver removal
SVN-Revision: 16335
Diffstat (limited to 'target/linux/brcm63xx')
-rw-r--r--target/linux/brcm63xx/files/drivers/net/bcm63xx_enet.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/target/linux/brcm63xx/files/drivers/net/bcm63xx_enet.c b/target/linux/brcm63xx/files/drivers/net/bcm63xx_enet.c
index a721492..7dad43d 100644
--- a/target/linux/brcm63xx/files/drivers/net/bcm63xx_enet.c
+++ b/target/linux/brcm63xx/files/drivers/net/bcm63xx_enet.c
@@ -1778,6 +1778,7 @@ static int __devinit bcm_enet_probe(struct platform_device *pdev)
dev->change_mtu = bcm_enet_change_mtu;
SET_ETHTOOL_OPS(dev, &bcm_enet_ethtool_ops);
+ SET_NETDEV_DEV(dev, &pdev->dev);
ret = register_netdev(dev);
if (ret)
@@ -1786,7 +1787,6 @@ static int __devinit bcm_enet_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, dev);
priv->pdev = pdev;
priv->net_dev = dev;
- SET_NETDEV_DEV(dev, &pdev->dev);
return 0;
@@ -1857,6 +1857,7 @@ static int __devexit bcm_enet_remove(struct platform_device *pdev)
clk_disable(priv->mac_clk);
clk_put(priv->mac_clk);
+ platform_set_drvdata(pdev, NULL);
free_netdev(dev);
return 0;
}