diff options
-rw-r--r-- | sound/soc/soc-dapm.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 61d7d85aa578..8863eddbac02 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c | |||
@@ -1320,8 +1320,12 @@ int snd_soc_dapm_new_controls(struct snd_soc_codec *codec, | |||
1320 | 1320 | ||
1321 | for (i = 0; i < num; i++) { | 1321 | for (i = 0; i < num; i++) { |
1322 | ret = snd_soc_dapm_new_control(codec, widget); | 1322 | ret = snd_soc_dapm_new_control(codec, widget); |
1323 | if (ret < 0) | 1323 | if (ret < 0) { |
1324 | printk(KERN_ERR | ||
1325 | "ASoC: Failed to create DAPM control %s: %d\n", | ||
1326 | widget->name, ret); | ||
1324 | return ret; | 1327 | return ret; |
1328 | } | ||
1325 | widget++; | 1329 | widget++; |
1326 | } | 1330 | } |
1327 | return 0; | 1331 | return 0; |