Checking for wol_enabled in bcmgenet_close() is bogus, since no other
code places set priv->wol_enabled. Remove that as it will conflict with
the upcoming and functional Wake-on-LAN implementation.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
 
        bcmgenet_set_hw_addr(priv, dev->dev_addr);
 
-       if (priv->wol_enabled) {
-               ret = bcmgenet_wol_resume(priv);
-               if (ret)
-                       return ret;
-       }
-
        if (phy_is_internal(priv->phydev)) {
                reg = bcmgenet_ext_readl(priv, EXT_EXT_PWR_MGMT);
                reg |= EXT_ENERGY_DET_MASK;
        if (phy_is_internal(priv->phydev))
                bcmgenet_power_down(priv, GENET_POWER_PASSIVE);
 
-       if (priv->wol_enabled)
-               clk_enable(priv->clk_wol);
-
        if (!IS_ERR(priv->clk))
                clk_disable_unprepare(priv->clk);
 
 
        struct platform_device *pdev;
 
        /* WOL */
-       unsigned long wol_enabled;
        struct clk *clk_wol;
        u32 wolopts;