mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
dsa: Remove master_dev from switch structure
The switch drivers only use the master_dev member for dev_info() messages. Now that the device is passed to the old style probe, and new style drivers are probed as true linux drivers, this is no longer needed. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
52638f71fc
commit
c33063d6a0
4 changed files with 5 additions and 7 deletions
|
@ -51,7 +51,7 @@ void dsa_slave_mii_bus_init(struct dsa_switch *ds)
|
|||
ds->slave_mii_bus->write = dsa_slave_phy_write;
|
||||
snprintf(ds->slave_mii_bus->id, MII_BUS_ID_SIZE, "dsa-%d:%.2x",
|
||||
ds->index, ds->pd->sw_addr);
|
||||
ds->slave_mii_bus->parent = ds->master_dev;
|
||||
ds->slave_mii_bus->parent = ds->dev;
|
||||
ds->slave_mii_bus->phy_mask = ~ds->phys_mii_mask;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue