|
@@ -1173,10 +1173,10 @@ static int bcm_sf2_sw_remove(struct platform_device *pdev)
|
|
|
{
|
|
{
|
|
|
struct bcm_sf2_priv *priv = platform_get_drvdata(pdev);
|
|
struct bcm_sf2_priv *priv = platform_get_drvdata(pdev);
|
|
|
|
|
|
|
|
- /* Disable all ports and interrupts */
|
|
|
|
|
priv->wol_ports_mask = 0;
|
|
priv->wol_ports_mask = 0;
|
|
|
- bcm_sf2_sw_suspend(priv->dev->ds);
|
|
|
|
|
dsa_unregister_switch(priv->dev->ds);
|
|
dsa_unregister_switch(priv->dev->ds);
|
|
|
|
|
+ /* Disable all ports and interrupts */
|
|
|
|
|
+ bcm_sf2_sw_suspend(priv->dev->ds);
|
|
|
bcm_sf2_mdio_unregister(priv);
|
|
bcm_sf2_mdio_unregister(priv);
|
|
|
|
|
|
|
|
return 0;
|
|
return 0;
|