mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
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>
This commit is contained in:
parent
7091e728c5
commit
dc26977f77
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue