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 <error27@gmail.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Franky Lin 2011-08-08 15:58:46 +02:00 committed by Greg Kroah-Hartman
parent 50206949c3
commit a4a9414213

View 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;