aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8350.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2010-12-13 03:28:43 -0500
committerTakashi Iwai <tiwai@suse.de>2010-12-13 03:28:43 -0500
commit20aeeb356ba2e8daa99b5942c528ae2b3ea28433 (patch)
treed2cebc7039954851998d592123899f5627def7a9 /sound/soc/codecs/wm8350.c
parent07a9e2b2fbdda631eeff54e4b8ebcaaea71be538 (diff)
parent5b84ba26a9672e615897234fa5efd3eea2d6b295 (diff)
Merge branch 'topic/workq-update' into topic/asoc
Conflicts: sound/soc/codecs/wm8350.c sound/soc/codecs/wm8753.c sound/soc/sh/fsi.c sound/soc/soc-core.c
Diffstat (limited to 'sound/soc/codecs/wm8350.c')
-rw-r--r--sound/soc/codecs/wm8350.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/sound/soc/codecs/wm8350.c b/sound/soc/codecs/wm8350.c
index dc6912e9b667..f8a8a6944e65 100644
--- a/sound/soc/codecs/wm8350.c
+++ b/sound/soc/codecs/wm8350.c
@@ -1627,7 +1627,6 @@ static int wm8350_codec_remove(struct snd_soc_codec *codec)
1627{ 1627{
1628 struct wm8350_data *priv = snd_soc_codec_get_drvdata(codec); 1628 struct wm8350_data *priv = snd_soc_codec_get_drvdata(codec);
1629 struct wm8350 *wm8350 = dev_get_platdata(codec->dev); 1629 struct wm8350 *wm8350 = dev_get_platdata(codec->dev);
1630 int ret;
1631 1630
1632 wm8350_clear_bits(wm8350, WM8350_JACK_DETECT, 1631 wm8350_clear_bits(wm8350, WM8350_JACK_DETECT,
1633 WM8350_JDL_ENA | WM8350_JDR_ENA); 1632 WM8350_JDL_ENA | WM8350_JDR_ENA);
@@ -1642,15 +1641,9 @@ static int wm8350_codec_remove(struct snd_soc_codec *codec)
1642 priv->hpr.jack = NULL; 1641 priv->hpr.jack = NULL;
1643 priv->mic.jack = NULL; 1642 priv->mic.jack = NULL;
1644 1643
1645 /* cancel any work waiting to be queued. */
1646 ret = cancel_delayed_work(&codec->dapm.delayed_work);
1647
1648 /* if there was any work waiting then we run it now and 1644 /* if there was any work waiting then we run it now and
1649 * wait for its completion */ 1645 * wait for its completion */
1650 if (ret) { 1646 flush_delayed_work_sync(&codec->delayed_work);
1651 schedule_delayed_work(&codec->dapm.delayed_work, 0);
1652 flush_scheduled_work();
1653 }
1654 1647
1655 wm8350_set_bias_level(codec, SND_SOC_BIAS_OFF); 1648 wm8350_set_bias_level(codec, SND_SOC_BIAS_OFF);
1656 1649