aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sound/soc/generic/audio-graph-card2.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/generic/audio-graph-card2.c b/sound/soc/generic/audio-graph-card2.c
index c0f3907a01fd..2b5d20f02f8f 100644
--- a/sound/soc/generic/audio-graph-card2.c
+++ b/sound/soc/generic/audio-graph-card2.c
@@ -1178,8 +1178,6 @@ int audio_graph2_parse_of(struct asoc_simple_priv *priv, struct device *dev,
struct link_info *li;
int ret;
- dev_warn(dev, "Audio Graph Card2 is still under Experimental stage\n");
-
li = devm_kzalloc(dev, sizeof(*li), GFP_KERNEL);
if (!li)
return -ENOMEM;
@@ -1245,6 +1243,9 @@ err:
if (ret < 0)
dev_err_probe(dev, ret, "parse error\n");
+ if (ret == 0)
+ dev_warn(dev, "Audio Graph Card2 is still under Experimental stage\n");
+
return ret;
}
EXPORT_SYMBOL_GPL(audio_graph2_parse_of);