From 9f067d8709639ea23ae6538d800c0822ed6e707f Mon Sep 17 00:00:00 2001 From: Eric Nelson Date: Fri, 30 Jan 2015 12:17:22 -0700 Subject: ASoC: sgtl5000: add delay before first I2C access Signed-off-by: Eric Nelson (cherry picked from commit df3d987038f53c8a76f28b3e6b374d0cc7941fed) --- sound/soc/codecs/sgtl5000.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c index 65544af8909f..1ecf612b6e2f 100644 --- a/sound/soc/codecs/sgtl5000.c +++ b/sound/soc/codecs/sgtl5000.c @@ -1494,7 +1494,7 @@ static int sgtl5000_i2c_probe(struct i2c_client *client, if (ret) return ret; - udelay(1,2); /* Data sheet says minimum 1uS delay after SYS_MCLK */ + usleep_range(1,2); /* Data sheet says minimum 1uS delay after SYS_MCLK */ /* read chip information */ ret = sgtl5000_read16(client, SGTL5000_CHIP_ID, ®); -- cgit v1.2.3