Re: [PATCH net-next 1/3] net: dsa: assign switch device in legacy code
From: Andrew Lunn
Date: Fri Aug 04 2017 - 20:55:47 EST
> @@ -251,8 +251,9 @@ dsa_switch_setup(struct dsa_switch_tree *dst, struct net_device *master,
> ds->cd = cd;
> ds->ops = ops;
> ds->priv = priv;
> + ds->dev = parent;
Hi Vivien
Is this even needed? dsa_switch_alloc() does ds->dev = dev.
Andrew