summaryrefslogtreecommitdiffstats
path: root/net/dsa/slave.c
diff options
context:
space:
mode:
authorAndrew Lunn2016-05-10 23:27:23 +0200
committerDavid S. Miller2016-05-12 01:36:28 +0200
commitc33063d6a0d83a553faacf32f3cb834e63d8ecd7 (patch)
tree789e0ef5e0cea80f757419483c3275a0990e048a /net/dsa/slave.c
parentdsa: Move gpio reset into switch driver (diff)
downloadkernel-qcow2-linux-c33063d6a0d83a553faacf32f3cb834e63d8ecd7.tar.gz
kernel-qcow2-linux-c33063d6a0d83a553faacf32f3cb834e63d8ecd7.tar.xz
kernel-qcow2-linux-c33063d6a0d83a553faacf32f3cb834e63d8ecd7.zip
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>
Diffstat (limited to 'net/dsa/slave.c')
-rw-r--r--net/dsa/slave.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa/slave.c b/net/dsa/slave.c
index 5ea8a40c8d33..f25dcd9e814a 100644
--- a/net/dsa/slave.c
+++ b/net/dsa/slave.c
@@ -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;
}