]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
ASoC: atmel: sam9x5_wm8731: fix oops when unload module
authorBo Shen <voice.shen@atmel.com>
Wed, 27 Nov 2013 10:05:09 +0000 (18:05 +0800)
committerMark Brown <broonie@linaro.org>
Wed, 27 Nov 2013 15:50:05 +0000 (15:50 +0000)
commit46bec25da6a41b7308adde746cbcdbbd0bf9b39c
treea45e2f84dfefd9b0aedc1352bd98baa6b8c0a9f5
parent6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae
ASoC: atmel: sam9x5_wm8731: fix oops when unload module

As the priv is not assigned to card->drvdata, it is NULL, so when
unload module, it will cause NULL pointer oops.
Assign priv to card->drvdata to fix this issue.

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/atmel/sam9x5_wm8731.c