]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rcar: remove rsnd_kctrl_remove()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 28 Mar 2017 02:31:23 +0000 (02:31 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 29 Mar 2017 11:01:10 +0000 (12:01 +0100)
commit63a35443709d08d97616c234b38858f2a42340a6
tree50c8fd5e22e55e326e0d87e199dccc0324bae9dd
parent755b3dba034e2f259ab2b1967a3859547935c1c6
ASoC: rcar: remove rsnd_kctrl_remove()

Current rcar driver is trying to remove kctrl when remove time.
But, 1) rcar driver can't/shouldn't remove before removing sound
card driver, 2) sound card driver will call snd_ctl_dev_free()
and removes all kctrls by snd_ctl_remove().
Thus, rsnd_kctrl_remove() is not necessary. Current implementation
will get Oops when removing rcar driver after sound card.
This patch fix this issue.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/core.c
sound/soc/sh/rcar/dvc.c
sound/soc/sh/rcar/rsnd.h