]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: ac97: don't call snd_soc_new_ac97_codec at probe
authorMika Westerberg <mika.westerberg@iki.fi>
Wed, 13 Oct 2010 08:30:31 +0000 (11:30 +0300)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 13 Oct 2010 09:35:05 +0000 (10:35 +0100)
commit1cbbdd8b39890f654b8bf3e1e7482e2f2f632eda
tree21d289204b7059561af5f887df70a86422248b4a
parent752c30ec60fce929bc3c1860a9483a1a4db01a81
ASoC: ac97: don't call snd_soc_new_ac97_codec at probe

It is not needed since snd_ac97_mixer() will create a new ac97 object for us.
Removing the call also fixes a memory leak since codec->ac97 is set to NULL at
the beginning of snd_ac97_mixer().

Signed-off-by: Mika Westerberg <mika.westerberg@iki.fi>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/ac97.c