]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: codecs: JZ4740: Fix OOPS
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 12 Apr 2011 17:33:28 +0000 (19:33 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 13 Apr 2011 17:26:46 +0000 (10:26 -0700)
commit0b7e062db6eace8ff4ab51b6b61dee6f5f834047
tree88e04a843236f37cc9c44fba65e7e241a3c15365
parenta83eeadbb9de6bdd166dc7fffbc94e3ccdc3b6d2
ASoC: codecs: JZ4740: Fix OOPS

Commit 92ca9f57(ASoC: Decouple DAPM from CODECs) changed the signature of
snd_soc_dapm_widgets_new to take an pointer to a snd_soc_dapm_context instead of
a snd_soc_codec. The call to snd_soc_dapm_widgets_new in jz4740_codec_dev_probe
was not updated to reflect this change, which results in a compiletime warning
and a runtime OOPS.

Since the core code calls snd_soc_dapm_widgets_new after the codec has been
registered it can be dropped here.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@kernel.org
sound/soc/codecs/jz4740.c