aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/b44.c
diff options
context:
space:
mode:
authorFrancois Romieu <romieu@fr.zoreil.com>2005-11-08 23:36:20 +0100
committerJeff Garzik <jgarzik@pobox.com>2005-11-09 01:02:41 -0500
commitb9dcbb40f40d60c7e33a2b7ea858fcd27c35cc00 (patch)
treee044be0f5fe46fee4990f819fd30a7dc89e3694a /drivers/net/b44.c
parente3305626e0985faa8796f1f4e5a99c1f40bfa70e (diff)
downloadkernel_samsung_smdk4412-b9dcbb40f40d60c7e33a2b7ea858fcd27c35cc00.tar.gz
kernel_samsung_smdk4412-b9dcbb40f40d60c7e33a2b7ea858fcd27c35cc00.tar.bz2
kernel_samsung_smdk4412-b9dcbb40f40d60c7e33a2b7ea858fcd27c35cc00.zip
[PATCH] b44: replace B44_FLAG_INIT_COMPLETE with netif_running()
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/net/b44.c')
-rw-r--r--drivers/net/b44.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/b44.c b/drivers/net/b44.c
index ecc2e32c38c..f1675dcf4d5 100644
--- a/drivers/net/b44.c
+++ b/drivers/net/b44.c
@@ -1392,7 +1392,6 @@ static int b44_open(struct net_device *dev)
b44_init_rings(bp);
b44_init_hw(bp);
- bp->flags |= B44_FLAG_INIT_COMPLETE;
netif_carrier_off(dev);
b44_check_phy(bp);
@@ -1456,7 +1455,6 @@ static int b44_close(struct net_device *dev)
#endif
b44_halt(bp);
b44_free_rings(bp);
- bp->flags &= ~B44_FLAG_INIT_COMPLETE;
netif_carrier_off(bp->dev);
spin_unlock_irq(&bp->lock);
@@ -1608,7 +1606,7 @@ static int b44_get_settings(struct net_device *dev, struct ethtool_cmd *cmd)
{
struct b44 *bp = netdev_priv(dev);
- if (!(bp->flags & B44_FLAG_INIT_COMPLETE))
+ if (!netif_running(dev))
return -EAGAIN;
cmd->supported = (SUPPORTED_Autoneg);
cmd->supported |= (SUPPORTED_100baseT_Half |
@@ -1646,7 +1644,7 @@ static int b44_set_settings(struct net_device *dev, struct ethtool_cmd *cmd)
{
struct b44 *bp = netdev_priv(dev);
- if (!(bp->flags & B44_FLAG_INIT_COMPLETE))
+ if (!netif_running(dev))
return -EAGAIN;
/* We do not support gigabit. */