Commit a4a94142 authored by Franky Lin's avatar Franky Lin Committed by Greg Kroah-Hartman

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: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarArend van Spriel <arend@broadcom.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 50206949
...@@ -980,6 +980,8 @@ static int brcmf_ops_sdio_probe(struct sdio_func *func, ...@@ -980,6 +980,8 @@ static int brcmf_ops_sdio_probe(struct sdio_func *func,
return -ENOMEM; return -ENOMEM;
sdiodev->func1 = func; sdiodev->func1 = func;
dev_set_drvdata(&func->card->dev, sdiodev); dev_set_drvdata(&func->card->dev, sdiodev);
atomic_set(&brcmf_mmc_suspend, false);
} }
gInstance->func[func->num] = func; gInstance->func[func->num] = func;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment