]> git.karo-electronics.de Git - linux-beck.git/commitdiff
b43legacy: fix logic in GPIO init
authorRafał Miłecki <zajec5@gmail.com>
Wed, 8 Aug 2012 17:10:16 +0000 (19:10 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 10 Aug 2012 19:27:01 +0000 (15:27 -0400)
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43legacy/main.c

index 8156135a0590775311baa7936f723f6f28242ff1..3ea1a85d38d1b14d4b7dede07f36604385e67fcd 100644 (file)
@@ -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;
 }