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
This commit is contained in:
@@ -1528,25 +1528,6 @@ static int wm8753_resume(struct snd_soc_codec *codec)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* This function forces any delayed work to be queued and run.
|
||||
*/
|
||||
static int run_delayed_work(struct delayed_work *dwork)
|
||||
{
|
||||
int ret;
|
||||
|
||||
/* cancel any work waiting to be queued. */
|
||||
ret = cancel_delayed_work(dwork);
|
||||
|
||||
/* if there was any work waiting then we run it now and
|
||||
* wait for it's completion */
|
||||
if (ret) {
|
||||
schedule_delayed_work(dwork, 0);
|
||||
flush_scheduled_work();
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int wm8753_probe(struct snd_soc_codec *codec)
|
||||
{
|
||||
struct wm8753_priv *wm8753 = snd_soc_codec_get_drvdata(codec);
|
||||
@@ -1606,7 +1587,7 @@ static int wm8753_probe(struct snd_soc_codec *codec)
|
||||
/* power down chip */
|
||||
static int wm8753_remove(struct snd_soc_codec *codec)
|
||||
{
|
||||
run_delayed_work(&codec->dapm.delayed_work);
|
||||
flush_delayed_work_sync(&codec->delayed_work);
|
||||
wm8753_set_bias_level(codec, SND_SOC_BIAS_OFF);
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user