diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2008-10-01 11:41:33 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-08 19:27:49 -0400 |
commit | 18ee49ddb0d242ed1d0e273038d5e4f6de7379d3 (patch) | |
tree | 8d935cda154204171628cee535f83a992aa66ef9 /drivers/net/phy | |
parent | 236bb5e649c2a7e8398b87df5e643368408afb4a (diff) |
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>
Diffstat (limited to 'drivers/net/phy')
-rw-r--r-- | drivers/net/phy/fixed.c | 2 | ||||
-rw-r--r-- | drivers/net/phy/mdio-ofgpio.c | 2 | ||||
-rw-r--r-- | drivers/net/phy/mdio_bus.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/phy/fixed.c b/drivers/net/phy/fixed.c index 4e07956a483b..1cec8967a089 100644 --- a/drivers/net/phy/fixed.c +++ b/drivers/net/phy/fixed.c | |||
@@ -215,7 +215,7 @@ static int __init fixed_mdio_bus_init(void) | |||
215 | 215 | ||
216 | snprintf(fmb->mii_bus.id, MII_BUS_ID_SIZE, "0"); | 216 | snprintf(fmb->mii_bus.id, MII_BUS_ID_SIZE, "0"); |
217 | fmb->mii_bus.name = "Fixed MDIO Bus"; | 217 | fmb->mii_bus.name = "Fixed MDIO Bus"; |
218 | fmb->mii_bus.dev = &pdev->dev; | 218 | fmb->mii_bus.parent = &pdev->dev; |
219 | fmb->mii_bus.read = &fixed_mdio_read; | 219 | fmb->mii_bus.read = &fixed_mdio_read; |
220 | fmb->mii_bus.write = &fixed_mdio_write; | 220 | fmb->mii_bus.write = &fixed_mdio_write; |
221 | fmb->mii_bus.irq = fmb->irqs; | 221 | fmb->mii_bus.irq = fmb->irqs; |
diff --git a/drivers/net/phy/mdio-ofgpio.c b/drivers/net/phy/mdio-ofgpio.c index 7edfc0c34835..27bd4539d089 100644 --- a/drivers/net/phy/mdio-ofgpio.c +++ b/drivers/net/phy/mdio-ofgpio.c | |||
@@ -142,7 +142,7 @@ static int __devinit mdio_ofgpio_probe(struct of_device *ofdev, | |||
142 | if (!strcmp(np->type, "ethernet-phy")) | 142 | if (!strcmp(np->type, "ethernet-phy")) |
143 | add_phy(new_bus, np); | 143 | add_phy(new_bus, np); |
144 | 144 | ||
145 | new_bus->dev = &ofdev->dev; | 145 | new_bus->parent = &ofdev->dev; |
146 | dev_set_drvdata(&ofdev->dev, new_bus); | 146 | dev_set_drvdata(&ofdev->dev, new_bus); |
147 | 147 | ||
148 | ret = mdiobus_register(new_bus); | 148 | ret = mdiobus_register(new_bus); |
diff --git a/drivers/net/phy/mdio_bus.c b/drivers/net/phy/mdio_bus.c index e7508c10887c..a7211a32bb4a 100644 --- a/drivers/net/phy/mdio_bus.c +++ b/drivers/net/phy/mdio_bus.c | |||
@@ -107,7 +107,7 @@ struct phy_device *mdiobus_scan(struct mii_bus *bus, int addr) | |||
107 | 107 | ||
108 | phydev->irq = bus->irq != NULL ? bus->irq[addr] : PHY_POLL; | 108 | phydev->irq = bus->irq != NULL ? bus->irq[addr] : PHY_POLL; |
109 | 109 | ||
110 | phydev->dev.parent = bus->dev; | 110 | phydev->dev.parent = bus->parent; |
111 | phydev->dev.bus = &mdio_bus_type; | 111 | phydev->dev.bus = &mdio_bus_type; |
112 | snprintf(phydev->dev.bus_id, BUS_ID_SIZE, PHY_ID_FMT, bus->id, addr); | 112 | snprintf(phydev->dev.bus_id, BUS_ID_SIZE, PHY_ID_FMT, bus->id, addr); |
113 | 113 | ||