net: bcmgenet: remove wol_enabled conditional code
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 21 Jul 2014 22:29:19 +0000 (15:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Jul 2014 23:04:30 +0000 (16:04 -0700)
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>
drivers/net/ethernet/broadcom/genet/bcmgenet.c
drivers/net/ethernet/broadcom/genet/bcmgenet.h

index 16281ad2da12c04ee8324ec85835b541479788c5..3cbf290952577126146ffcd80eed202320f5aa52 100644 (file)
@@ -1994,12 +1994,6 @@ static int bcmgenet_open(struct net_device *dev)
 
        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;
@@ -2161,9 +2155,6 @@ static int bcmgenet_close(struct net_device *dev)
        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);
 
index e23c993b13625bca2af3addbde66609c2f3202f0..f4891a1b67588bb0d6b8f2ba9fdffa77e08732c3 100644 (file)
@@ -583,7 +583,6 @@ struct bcmgenet_priv {
        struct platform_device *pdev;
 
        /* WOL */
-       unsigned long wol_enabled;
        struct clk *clk_wol;
        u32 wolopts;