提交 11b4ad96 编写于 作者: N Nicholas Mc Guire 提交者: Mark Brown

ASoC: rt5659: use msleep() for long delays

ulseep_range() uses hrtimers and provides no advantage over msleep()
for larger delays. For this large delay msleep() is preferable.

Fixes: commit d3cb2de2 ("ASoC: rt5659: add rt5659 codec driver")
Link: http://lkml.org/lkml/2017/1/11/377Signed-off-by: NNicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 a5de5b74
...@@ -4018,7 +4018,7 @@ static int rt5659_i2c_probe(struct i2c_client *i2c, ...@@ -4018,7 +4018,7 @@ static int rt5659_i2c_probe(struct i2c_client *i2c,
GPIOD_OUT_HIGH); GPIOD_OUT_HIGH);
/* Sleep for 300 ms miniumum */ /* Sleep for 300 ms miniumum */
usleep_range(300000, 350000); msleep(300);
rt5659->regmap = devm_regmap_init_i2c(i2c, &rt5659_regmap); rt5659->regmap = devm_regmap_init_i2c(i2c, &rt5659_regmap);
if (IS_ERR(rt5659->regmap)) { if (IS_ERR(rt5659->regmap)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册