from: Marc Pignat <[EMAIL PROTECTED]>
Replace long udelay by mdelay (long udelay are not supported on all arch).
Signed-off-by: Marc Pignat <[EMAIL PROTECTED]>
---
The file drivers/net/wireless/mac80211/bcm43xx/bcm43xx_phy.c doesn't compile for
ARM architecture (and possibly others).
Here is the patch for replacing long (>1000) udelay by corresponding mdelay.
Regards
Marc
--- drivers/net/wireless/mac80211/bcm43xx/bcm43xx_phy.c.orig 2007-06-04
14:49:39.000000000 +0200
+++ drivers/net/wireless/mac80211/bcm43xx/bcm43xx_phy.c 2007-06-04
14:52:26.000000000 +0200
@@ -3860,7 +3860,7 @@ void bcm43xx_radio_init2060(struct bcm43
err = bcm43xx_radio_selectchannel(dev, BCM43xx_DEFAULT_CHANNEL_A, 0);
assert(err == 0);
- udelay(1000);
+ mdelay(1);
}
static inline
@@ -3997,7 +3997,7 @@ int bcm43xx_radio_selectchannel(struct b
phy->channel = channel;
//XXX: Using the longer of 2 timeouts (8000 vs 2000 usecs). Specs states
// that 2000 usecs might suffice.
- udelay(8000);
+ mdelay(8);
return 0;
}
_______________________________________________
Bcm43xx-dev mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev