From: qjb Date: Tue, 8 Jul 2014 02:19:18 +0000 (+0800) Subject: rk616 codec : remove call function rk616_codec_power_up after X-Git-Tag: firefly_0821_release~4991 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=68bef378c794609ae5ecb8d092bf673b44760377;p=firefly-linux-kernel-4.4.55.git rk616 codec : remove call function rk616_codec_power_up after kfree rk616_priv. --- diff --git a/sound/soc/codecs/rk616_codec.c b/sound/soc/codecs/rk616_codec.c index cd812be5a8ac..75fe6e606bef 100755 --- a/sound/soc/codecs/rk616_codec.c +++ b/sound/soc/codecs/rk616_codec.c @@ -3243,14 +3243,11 @@ void rk616_platform_shutdown(struct platform_device *pdev) mdelay(10); snd_soc_write(codec, RK616_RESET, 0x3); - if (rk616) { - kfree(rk616); - printk("rk616 = %d, rk616_priv = %d\n", rk616, rk616_priv); + if (rk616_priv) { + kfree(rk616_priv); if (rk616_priv) rk616_priv = NULL; - rk616_codec_power_up(RK616_CODEC_PLAYBACK); } - } static struct platform_driver rk616_codec_driver = {