Skip to content

Commit

Permalink
ASoC: Report I/O errors from WM8753 reset
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed Feb 22, 2009
1 parent ce3bdaa commit eeb1080
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sound/soc/codecs/wm8753.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit eeb1080

Please sign in to comment.