summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43legacy/phy.h
diff options
context:
space:
mode:
authorMichael Buesch2008-01-09 20:15:31 +0100
committerDavid S. Miller2008-01-29 00:10:42 +0100
commitbfe6a50156ab0c33729378fae7038bce3c6c5184 (patch)
tree4d29fdaa77eef7772eadab31033227e49e67c911 /drivers/net/wireless/b43legacy/phy.h
parentmac80211: Assign correct TID for local bridged packets (diff)
downloadkernel-qcow2-linux-bfe6a50156ab0c33729378fae7038bce3c6c5184.tar.gz
kernel-qcow2-linux-bfe6a50156ab0c33729378fae7038bce3c6c5184.tar.xz
kernel-qcow2-linux-bfe6a50156ab0c33729378fae7038bce3c6c5184.zip
b43legacy: Remove the PHY spinlock
This fixes a sparse warning about weird locking. The spinlock is not needed, so simply remove it. This also adds some sanity checks to the PHY and radio locking to protect against recursive locking. Signed-off-by: Michael Buesch <mb@bu3sch.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43legacy/phy.h')
-rw-r--r--drivers/net/wireless/b43legacy/phy.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/drivers/net/wireless/b43legacy/phy.h b/drivers/net/wireless/b43legacy/phy.h
index efa4c5c54a86..ecbe409f9a94 100644
--- a/drivers/net/wireless/b43legacy/phy.h
+++ b/drivers/net/wireless/b43legacy/phy.h
@@ -171,18 +171,8 @@ void b43legacy_put_attenuation_into_ranges(int *_bbatt, int *_rfatt);
struct b43legacy_wldev;
-void b43legacy_raw_phy_lock(struct b43legacy_wldev *dev);
-#define b43legacy_phy_lock(bcm, flags) \
- do { \
- local_irq_save(flags); \
- b43legacy_raw_phy_lock(bcm); \
- } while (0)
-void b43legacy_raw_phy_unlock(struct b43legacy_wldev *dev);
-#define b43legacy_phy_unlock(bcm, flags) \
- do { \
- b43legacy_raw_phy_unlock(bcm); \
- local_irq_restore(flags); \
- } while (0)
+void b43legacy_phy_lock(struct b43legacy_wldev *dev);
+void b43legacy_phy_unlock(struct b43legacy_wldev *dev);
/* Card uses the loopback gain stuff */
#define has_loopback_gain(phy) \