|
@@ -1321,10 +1321,14 @@ static int wm8998_codec_probe(struct snd_soc_codec *codec)
|
|
|
struct wm8998_priv *priv = snd_soc_codec_get_drvdata(codec);
|
|
|
struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec);
|
|
|
struct snd_soc_component *component = snd_soc_dapm_to_component(dapm);
|
|
|
+ int ret;
|
|
|
|
|
|
priv->core.arizona->dapm = dapm;
|
|
|
|
|
|
- arizona_init_spk(codec);
|
|
|
+ ret = arizona_init_spk(codec);
|
|
|
+ if (ret < 0)
|
|
|
+ return ret;
|
|
|
+
|
|
|
arizona_init_gpio(codec);
|
|
|
arizona_init_notifiers(codec);
|
|
|
|