Skip to content

Commit

Permalink
staging: brcm80211: revert removal of atomic initialization
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Franky Lin authored and Greg Kroah-Hartman committed Aug 23, 2011
1 parent 5020694 commit a4a9414
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a4a9414

Please sign in to comment.