From a4a94142131676c34f53b45d2d601d8a6094492f Mon Sep 17 00:00:00 2001 From: Franky Lin Date: Mon, 8 Aug 2011 15:58:46 +0200 Subject: [PATCH] staging: brcm80211: revert removal of atomic initialization 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 Signed-off-by: Arend van Spriel Signed-off-by: Greg Kroah-Hartman --- drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc.c b/drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc.c index 16ea6e87cfae..2a9efc30d85e 100644 --- a/drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc.c +++ b/drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc.c @@ -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; -- 2.30.2