net: mscc: ocelot: separate the common implementation of ndo_open and ndo_stop
authorVladimir Oltean <vladimir.oltean@nxp.com>
Sat, 9 Nov 2019 13:02:57 +0000 (15:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Nov 2019 20:59:10 +0000 (12:59 -0800)
commit889b8950d85287e870288c7503870fd11db3d551
treedadbe8985614c9b4fc915a5f41caafcbd87bbf1d
parent31350d7fb985398a61cad8fd7acb6aa3272939d2
net: mscc: ocelot: separate the common implementation of ndo_open and ndo_stop

Allow these functions to be called from the .port_enable and
.port_disable callbacks of DSA.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot.c