From: Mark Brown Date: Sun, 22 Feb 2009 14:19:23 +0000 (+0000) Subject: ASoC: Report I/O errors from WM8753 reset X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=eeb1080b29a0fa00e426ba77eb96f3a157b335ab;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git ASoC: Report I/O errors from WM8753 reset Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm8753.c b/sound/soc/codecs/wm8753.c index 31ff337f8225..180ec94ad8ae 100644 --- a/sound/soc/codecs/wm8753.c +++ b/sound/soc/codecs/wm8753.c @@ -1561,7 +1561,11 @@ static int wm8753_init(struct snd_soc_device *socdev) wm8753_set_dai_mode(codec, 0); - wm8753_reset(codec); + ret = wm8753_reset(codec); + if (ret < 0) { + printk(KERN_ERR "wm8753: failed to reset device\n"); + return ret; + } /* register pcms */ ret = snd_soc_new_pcms(socdev, SNDRV_DEFAULT_IDX1, SNDRV_DEFAULT_STR1);