]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/soc/codecs/wm8753.c
ASoC: Report I/O errors from WM8753 reset
[linux-2.6-omap-h63xx.git] / sound / soc / codecs / wm8753.c
index 31ff337f82253abcd630cbd9e773c62c0c7276d2..180ec94ad8ae2f216b080e9483152595929bde29 100644 (file)
@@ -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);