diff options
-rw-r--r-- | sound/soc/generic/simple-card.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index 7b2533c7f82e..8b7b47251fe1 100644 --- a/sound/soc/generic/simple-card.c +++ b/sound/soc/generic/simple-card.c | |||
@@ -354,13 +354,9 @@ static int asoc_simple_card_parse_of(struct simple_card_data *priv) | |||
354 | 354 | ||
355 | dai_link = of_get_child_by_name(node, PREFIX "dai-link"); | 355 | dai_link = of_get_child_by_name(node, PREFIX "dai-link"); |
356 | 356 | ||
357 | /* The off-codec widgets */ | 357 | ret = asoc_simple_card_of_parse_widgets(card, PREFIX); |
358 | if (of_property_read_bool(node, PREFIX "widgets")) { | 358 | if (ret < 0) |
359 | ret = snd_soc_of_parse_audio_simple_widgets(card, | 359 | goto card_parse_end; |
360 | PREFIX "widgets"); | ||
361 | if (ret) | ||
362 | goto card_parse_end; | ||
363 | } | ||
364 | 360 | ||
365 | ret = asoc_simple_card_of_parse_routing(card, PREFIX, 1); | 361 | ret = asoc_simple_card_of_parse_routing(card, PREFIX, 1); |
366 | if (ret < 0) | 362 | if (ret < 0) |