]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: sun8i-codec: fix crash on module removal
authorVasily Khoruzhick <anarsoul@gmail.com>
Fri, 9 Nov 2018 04:31:35 +0000 (20:31 -0800)
committerMark Brown <broonie@kernel.org>
Fri, 9 Nov 2018 15:35:42 +0000 (15:35 +0000)
commit28b50c44c96d7f2381788732a41d4b6068f3e828
tree6656611e7f9229a9ddf83ed64f762f4f798f2446
parent447b0449f2c2fd745a8facf576af33c064661305
ASoC: sun8i-codec: fix crash on module removal

drvdata is actually sun8i_codec, not snd_soc_card, so it crashes
when calling snd_soc_card_get_drvdata().

Drop card and scodec vars anyway since we don't need to
disable/unprepare clocks - it's already done by calling
runtime_suspend()

Drop clk_disable_unprepare() calls for the same reason.

Fixes: bc2057ab92e2e ("ASoC: Add sun8i digital audio codec")
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/sun8i-codec.c