]> git.karo-electronics.de Git - karo-tx-linux.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)
commite0c4211854bfebd5507761a2bfddaa9e37074230
tree50c8fd5e22e55e326e0d87e199dccc0324bae9dd
parent6b8530cc056efd4a11b034ca5b1e9f7e9563f553
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