aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/smsc911x.c
diff options
context:
space:
mode:
authorSteve Glendinning <steve.glendinning@smsc.com>2008-12-25 19:43:34 -0500
committerDavid S. Miller <davem@davemloft.net>2008-12-25 19:43:34 -0500
commitdc26977f77dd3486b59516d2cc03627009c0d4c6 (patch)
tree9c492758f057b38b40c50a91a37905b2ce560c58 /drivers/net/smsc911x.c
parent7091e728c570157496e52296d2dbe816a6916836 (diff)
smsc911x: don't clobber driver_data
smsc911x uses driver_data to store our net_device, don't overwrite this with the mii_bus. Reported and fixed by dfoley@telus.net. Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/smsc911x.c')
-rw-r--r--drivers/net/smsc911x.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/smsc911x.c b/drivers/net/smsc911x.c
index cbaf0a5bb22f..d94560f9eac7 100644
--- a/drivers/net/smsc911x.c
+++ b/drivers/net/smsc911x.c
@@ -822,7 +822,6 @@ static int __devinit smsc911x_mii_init(struct platform_device *pdev,
822 pdata->mii_bus->irq[i] = PHY_POLL; 822 pdata->mii_bus->irq[i] = PHY_POLL;
823 823
824 pdata->mii_bus->parent = &pdev->dev; 824 pdata->mii_bus->parent = &pdev->dev;
825 dev_set_drvdata(&pdev->dev, &pdata->mii_bus);
826 825
827 pdata->using_extphy = 0; 826 pdata->using_extphy = 0;
828 827