b43: 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>
This commit is contained in:
committed by
David S. Miller
parent
5250703e31
commit
f31800d8b7
@ -3146,9 +3146,6 @@ static void setup_struct_phy_for_init(struct b43_wldev *dev,
|
||||
memset(phy->minlowsig, 0xFF, sizeof(phy->minlowsig));
|
||||
memset(phy->minlowsigpos, 0, sizeof(phy->minlowsigpos));
|
||||
|
||||
/* Flags */
|
||||
phy->locked = 0;
|
||||
|
||||
phy->aci_enable = 0;
|
||||
phy->aci_wlan_automatic = 0;
|
||||
phy->aci_hw_rssi = 0;
|
||||
@ -3175,7 +3172,6 @@ static void setup_struct_phy_for_init(struct b43_wldev *dev,
|
||||
phy->lofcal = 0xFFFF;
|
||||
phy->initval = 0xFFFF;
|
||||
|
||||
spin_lock_init(&phy->lock);
|
||||
phy->interfmode = B43_INTERFMODE_NONE;
|
||||
phy->channel = 0xFF;
|
||||
|
||||
|
Reference in New Issue
Block a user