Skip to content

Commit

Permalink
ASoC: Remove unneeded mutex_init in wl1273_probe()
Browse files Browse the repository at this point in the history
Since f0fba2a "ASoC: multi-component - ASoC Multi-Component Support",
snd_soc_register_codec() now does all the codec list and mutex init.
Thus don't need to call mutex_init(&codec->mutex) in wl1273_probe() any more.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Axel Lin authored and Mark Brown committed Sep 23, 2011
1 parent a436089 commit 0010bcc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sound/soc/codecs/wl1273.c
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,6 @@ static int wl1273_probe(struct snd_soc_codec *codec)
wl1273->core = *core;

snd_soc_codec_set_drvdata(codec, wl1273);
mutex_init(&codec->mutex);

r = snd_soc_add_controls(codec, wl1273_controls,
ARRAY_SIZE(wl1273_controls));
Expand Down

0 comments on commit 0010bcc

Please sign in to comment.