aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/dsa/bcm_sf2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/dsa/bcm_sf2.c b/drivers/net/dsa/bcm_sf2.c
index e0066adcd2f3..b6d8e849a949 100644
--- a/drivers/net/dsa/bcm_sf2.c
+++ b/drivers/net/dsa/bcm_sf2.c
@@ -1173,10 +1173,10 @@ static int bcm_sf2_sw_remove(struct platform_device *pdev)
1173{ 1173{
1174 struct bcm_sf2_priv *priv = platform_get_drvdata(pdev); 1174 struct bcm_sf2_priv *priv = platform_get_drvdata(pdev);
1175 1175
1176 /* Disable all ports and interrupts */
1177 priv->wol_ports_mask = 0; 1176 priv->wol_ports_mask = 0;
1178 bcm_sf2_sw_suspend(priv->dev->ds);
1179 dsa_unregister_switch(priv->dev->ds); 1177 dsa_unregister_switch(priv->dev->ds);
1178 /* Disable all ports and interrupts */
1179 bcm_sf2_sw_suspend(priv->dev->ds);
1180 bcm_sf2_mdio_unregister(priv); 1180 bcm_sf2_mdio_unregister(priv);
1181 1181
1182 return 0; 1182 return 0;