diff options
author | Nicholas Mc Guire <hofrat@osadl.org> | 2017-01-12 14:14:20 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-01-12 17:21:45 +0000 |
commit | 11b4ad9631d99df8a8f5ab175eab78d5850e92fe (patch) | |
tree | 4243083e20cbe153abeeb507a4f1bfe84009e1db /sound/soc/codecs/rt5659.c | |
parent | a5de5b74a50113564a1e0850e2da96c37c35e55d (diff) | |
download | blackbird-op-linux-11b4ad9631d99df8a8f5ab175eab78d5850e92fe.tar.gz blackbird-op-linux-11b4ad9631d99df8a8f5ab175eab78d5850e92fe.zip |
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 d3cb2de2479b ("ASoC: rt5659: add rt5659 codec driver")
Link: http://lkml.org/lkml/2017/1/11/377
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5659.c')
-rw-r--r-- | sound/soc/codecs/rt5659.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/rt5659.c b/sound/soc/codecs/rt5659.c index db54550aed60..a57f67bd4a0c 100644 --- a/sound/soc/codecs/rt5659.c +++ b/sound/soc/codecs/rt5659.c @@ -4018,7 +4018,7 @@ static int rt5659_i2c_probe(struct i2c_client *i2c, GPIOD_OUT_HIGH); /* Sleep for 300 ms miniumum */ - usleep_range(300000, 350000); + msleep(300); rt5659->regmap = devm_regmap_init_i2c(i2c, &rt5659_regmap); if (IS_ERR(rt5659->regmap)) { |