[PATCH] b43legacy: fix logic in GPIO init

Rafał Miłecki zajec5 at gmail.com
Wed Aug 8 13:10:16 EDT 2012


Signed-off-by: Rafał Miłecki <zajec5 at gmail.com>
---
It's compile-tested only, as I don't have hardware to test it. It's
quite obvious and was also applied in b43.
---
 drivers/net/wireless/b43legacy/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/wireless/b43legacy/main.c b/drivers/net/wireless/b43legacy/main.c
index 8156135..3ea1a85 100644
--- a/drivers/net/wireless/b43legacy/main.c
+++ b/drivers/net/wireless/b43legacy/main.c
@@ -1920,7 +1920,7 @@ static int b43legacy_gpio_init(struct b43legacy_wldev *dev)
 		return 0;
 	ssb_write32(gpiodev, B43legacy_GPIO_CONTROL,
 		    (ssb_read32(gpiodev, B43legacy_GPIO_CONTROL)
-		     & mask) | set);
+		     & ~mask) | set);
 
 	return 0;
 }
-- 
1.7.7




More information about the b43-dev mailing list