Skip to content

Commit

Permalink
smsc911x: don't clobber driver_data
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steve Glendinning authored and David S. Miller committed Dec 26, 2008
1 parent 7091e72 commit dc26977
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/net/smsc911x.c
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,6 @@ static int __devinit smsc911x_mii_init(struct platform_device *pdev,
pdata->mii_bus->irq[i] = PHY_POLL;

pdata->mii_bus->parent = &pdev->dev;
dev_set_drvdata(&pdev->dev, &pdata->mii_bus);

pdata->using_extphy = 0;

Expand Down

0 comments on commit dc26977

Please sign in to comment.