Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: rt5645: Use the mod_delayed_work instead of the queue_delayed_work and cancel_delayed_work_sync

Signed-off-by: Oder Chiou <oder_chiou@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Oder Chiou and committed by
Mark Brown
6e5b143c 438cd5af

+1 -3
+1 -3
sound/soc/codecs/rt5645.c
··· 572 572 struct rt5645_priv *rt5645 = snd_soc_component_get_drvdata(component); 573 573 int ret; 574 574 575 - cancel_delayed_work_sync(&rt5645->rcclock_work); 576 - 577 575 regmap_update_bits(rt5645->regmap, RT5645_MICBIAS, 578 576 RT5645_PWR_CLK25M_MASK, RT5645_PWR_CLK25M_PU); 579 577 580 578 ret = snd_soc_put_volsw(kcontrol, ucontrol); 581 579 582 - queue_delayed_work(system_power_efficient_wq, &rt5645->rcclock_work, 580 + mod_delayed_work(system_power_efficient_wq, &rt5645->rcclock_work, 583 581 msecs_to_jiffies(200)); 584 582 585 583 return ret;