mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
rk616 codec : remove call function rk616_codec_power_up after
kfree rk616_priv.
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user