Skip to content

Commit

Permalink
Merge branch 'for-jeff' of git://electric-eye.fr.zoreil.com/home/romi…
Browse files Browse the repository at this point in the history
…eu/linux-2.6
  • Loading branch information
Jeff Garzik committed Dec 1, 2005
2 parents 5666c09 + 981d9c1 commit d5366d9
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions drivers/net/b44.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@

#define DRV_MODULE_NAME "b44"
#define PFX DRV_MODULE_NAME ": "
#define DRV_MODULE_VERSION "0.96"
#define DRV_MODULE_RELDATE "Nov 8, 2005"
#define DRV_MODULE_VERSION "0.97"
#define DRV_MODULE_RELDATE "Nov 30, 2005"

#define B44_DEF_MSG_ENABLE \
(NETIF_MSG_DRV | \
Expand Down Expand Up @@ -1417,6 +1417,7 @@ static int b44_open(struct net_device *dev)
add_timer(&bp->timer);

b44_enable_ints(bp);
netif_start_queue(dev);
out:
return err;
}
Expand Down Expand Up @@ -1837,12 +1838,15 @@ static int b44_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
{
struct mii_ioctl_data *data = if_mii(ifr);
struct b44 *bp = netdev_priv(dev);
int err;
int err = -EINVAL;

if (!netif_running(dev))
goto out;

spin_lock_irq(&bp->lock);
err = generic_mii_ioctl(&bp->mii_if, data, cmd, NULL);
spin_unlock_irq(&bp->lock);

out:
return err;
}

Expand Down Expand Up @@ -2113,6 +2117,7 @@ static int b44_resume(struct pci_dev *pdev)
add_timer(&bp->timer);

b44_enable_ints(bp);
netif_wake_queue(dev);
return 0;
}

Expand Down

0 comments on commit d5366d9

Please sign in to comment.