b43legacy: fix logic in GPIO init

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Sat Sep 29 10:59:30 EDT 2012


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=85ce5ae52690aab0b3a4a6e9a1c2f951d2d8a5cc
Commit:     85ce5ae52690aab0b3a4a6e9a1c2f951d2d8a5cc
Parent:     6c1872369d53966dc26be71c96c4c5db13f65981
Author:     Rafał Miłecki <zajec5 at gmail.com>
AuthorDate: Wed Aug 8 19:10:16 2012 +0200
Committer:  John W. Linville <linville at tuxdriver.com>
CommitDate: Fri Aug 10 15:27:01 2012 -0400

    b43legacy: fix logic in GPIO init
    
    Signed-off-by: Rafał Miłecki <zajec5 at gmail.com>
    Signed-off-by: John W. Linville <linville at tuxdriver.com>
---
 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;
 }



More information about the linux-mtd-cvs mailing list