ASoC: codecs: JZ4740: Fix OOPS
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 12 Apr 2011 17:33:28 +0000 (19:33 +0200)
committerSteve Conklin <sconklin@canonical.com>
Thu, 2 Jun 2011 19:23:02 +0000 (14:23 -0500)
commit0adaf5f84871a817dcccf98607060efb4e63654c
tree06e4d0d0e6078df434e53fa39cc9d3ebf7782415
parent58dedc56ec6740546977c46ea489deaee4cfcfa1
ASoC: codecs: JZ4740: Fix OOPS

BugLink: http://bugs.launchpad.net/bugs/775809

commit 1fdf9b49e9e7788d09bad4b08a6a821ac39798f3 upstream.

Commit ce6120cc(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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
sound/soc/codecs/jz4740.c