From: Jean-Francois Moine Date: Sat, 25 Jan 2014 17:14:44 +0000 (+0100) Subject: drm/i2c: tda998x: don't freeze the system at audio startup time X-Git-Tag: next-20140306~57^2~3^2~10 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=73d5e253ac641bf95f5836c064128be78f43cd0b;p=karo-tx-linux.git drm/i2c: tda998x: don't freeze the system at audio startup time This patch prevents the system to be freezed at audio startup time, replacing mdelay by msleep. Tested-by: Russell King Acked-by: Russell King Signed-off-by: Jean-Francois Moine Signed-off-by: Russell King --- diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c index c3eebd73a706..80b94b51e060 100644 --- a/drivers/gpu/drm/i2c/tda998x_drv.c +++ b/drivers/gpu/drm/i2c/tda998x_drv.c @@ -681,7 +681,7 @@ tda998x_configure_audio(struct tda998x_priv *priv, reg_write_range(priv, REG_CH_STAT_B(0), buf, 4); tda998x_audio_mute(priv, true); - mdelay(20); + msleep(20); tda998x_audio_mute(priv, false); /* Write the audio information packet */