]> git.baikalelectronics.ru Git - 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)
commit8e27f481678f6ce9d12a3a18d2c69c75aa982e2f
treea45e2f84dfefd9b0aedc1352bd98baa6b8c0a9f5
parent1386d2af13b0b2ba423da1adf79ceabb7ea834e9
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