phylib: rename mii_bus::dev to mii_bus::parent
In preparation of giving mii_bus objects a device tree presence of their own, rename struct mii_bus's ->dev argument to ->parent, since having a 'struct device *dev' that points to our parent device conflicts with introducing a 'struct device dev' representing our own device. Signed-off-by: Lennert Buytenhek <buytenh@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net> Acked-by: Andy Fleming <afleming@freescale.com>
This commit is contained in:

committed by
David S. Miller

parent
236bb5e649
commit
18ee49ddb0
@@ -768,7 +768,7 @@ static int tc_mii_init(struct net_device *dev)
|
||||
snprintf(lp->mii_bus.id, MII_BUS_ID_SIZE, "%x",
|
||||
(lp->pci_dev->bus->number << 8) | lp->pci_dev->devfn);
|
||||
lp->mii_bus.priv = dev;
|
||||
lp->mii_bus.dev = &lp->pci_dev->dev;
|
||||
lp->mii_bus.parent = &lp->pci_dev->dev;
|
||||
lp->mii_bus.irq = kmalloc(sizeof(int) * PHY_MAX_ADDR, GFP_KERNEL);
|
||||
if (!lp->mii_bus.irq) {
|
||||
err = -ENOMEM;
|
||||
|
Reference in New Issue
Block a user