Commit eeb1080b authored by Mark Brown's avatar Mark Brown

ASoC: Report I/O errors from WM8753 reset

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent ce3bdaa8
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment