summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sound/soc/codecs/max98095.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sound/soc/codecs/max98095.c b/sound/soc/codecs/max98095.c
index 3f873b6d75a3..38ffe6b96b5b 100644
--- a/sound/soc/codecs/max98095.c
+++ b/sound/soc/codecs/max98095.c
@@ -2238,7 +2238,11 @@ static int max98095_probe(struct snd_soc_codec *codec)
}
/* reset the codec, the DSP core, and disable all interrupts */
- max98095_reset(codec);
+ ret = max98095_reset(codec);
+ if (ret != 0) {
+ dev_err(codec->dev, "Failed to reset: %d\n", ret);
+ return ret;
+ }
/* initialize private data */