aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/airo.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/airo.c')
-rw-r--r--drivers/net/wireless/airo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c
index 8a78283e8607..17ced37e55ed 100644
--- a/drivers/net/wireless/airo.c
+++ b/drivers/net/wireless/airo.c
@@ -2669,6 +2669,7 @@ static struct net_device *init_wifidev(struct airo_info *ai,
2669 dev->irq = ethdev->irq; 2669 dev->irq = ethdev->irq;
2670 dev->base_addr = ethdev->base_addr; 2670 dev->base_addr = ethdev->base_addr;
2671 dev->wireless_data = ethdev->wireless_data; 2671 dev->wireless_data = ethdev->wireless_data;
2672 SET_NETDEV_DEV(dev, ethdev->dev.parent);
2672 memcpy(dev->dev_addr, ethdev->dev_addr, dev->addr_len); 2673 memcpy(dev->dev_addr, ethdev->dev_addr, dev->addr_len);
2673 err = register_netdev(dev); 2674 err = register_netdev(dev);
2674 if (err<0) { 2675 if (err<0) {
@@ -2905,7 +2906,7 @@ EXPORT_SYMBOL(init_airo_card);
2905 2906
2906static int waitbusy (struct airo_info *ai) { 2907static int waitbusy (struct airo_info *ai) {
2907 int delay = 0; 2908 int delay = 0;
2908 while ((IN4500 (ai, COMMAND) & COMMAND_BUSY) & (delay < 10000)) { 2909 while ((IN4500 (ai, COMMAND) & COMMAND_BUSY) && (delay < 10000)) {
2909 udelay (10); 2910 udelay (10);
2910 if ((++delay % 20) == 0) 2911 if ((++delay % 20) == 0)
2911 OUT4500(ai, EVACK, EV_CLEARCOMMANDBUSY); 2912 OUT4500(ai, EVACK, EV_CLEARCOMMANDBUSY);