staging: brcm80211: revert removal of atomic initialization
authorFranky Lin <frankyl@broadcom.com>
Mon, 8 Aug 2011 13:58:46 +0000 (15:58 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 23 Aug 2011 20:00:08 +0000 (13:00 -0700)
The commit "staging: brcm80211: remove code for unsupported chip"
unintentionally got rid of initialization of the atomic variable
brcmf_mmc_suspend. The patch restore that particular piece of code.

Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc.c

index 16ea6e87cfae65ed6254cd977abbbc84295465fe..2a9efc30d85ef549c7df6db09063a6e34c129d83 100644 (file)
@@ -980,6 +980,8 @@ static int brcmf_ops_sdio_probe(struct sdio_func *func,
                        return -ENOMEM;
                sdiodev->func1 = func;
                dev_set_drvdata(&func->card->dev, sdiodev);
+
+               atomic_set(&brcmf_mmc_suspend, false);
        }
 
        gInstance->func[func->num] = func;