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:

committed by
David S. Miller

parent
52638f71fc
commit
c33063d6a0
@@ -411,7 +411,7 @@ dsa_switch_setup(struct dsa_switch_tree *dst, int index,
|
||||
ds->pd = pd;
|
||||
ds->drv = drv;
|
||||
ds->priv = priv;
|
||||
ds->master_dev = host_dev;
|
||||
ds->dev = parent;
|
||||
|
||||
ret = dsa_switch_setup_one(ds, parent);
|
||||
if (ret)
|
||||
|
Reference in New Issue
Block a user