asoc_simple_card_canonicalize_platform returns void, and always successful

In v5.1:

commit fe7ed4dec2e6289eab81dd18c0d613c0851d85a1
Author: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Date:   Mon Jan 21 16:40:59 2019 +0900

    ASoC: simple-card: rename to asoc_simple_card_canonicalize_platform()

    Current simple-card is using asoc_simple_card_canonicalize_dailink().
    Its naming is "dailink", but is for "platform".
    We already have asoc_simple_card_canonicalize_cpu() for "cpu",
    let's follow same naming rule.
    It never return error, so, void function is better idea.
This commit is contained in:
Hin-Tak Leung 2020-04-24 03:50:41 +01:00
parent 61022875b3
commit b9272dcee8

View file

@ -378,9 +378,7 @@ static int seeed_voice_card_dai_link_of(struct device_node *node,
goto dai_link_of_err; goto dai_link_of_err;
#if _SINGLE_CODEC #if _SINGLE_CODEC
ret = asoc_simple_canonicalize_platform(dai_link); asoc_simple_canonicalize_platform(dai_link);
if (ret < 0)
goto dai_link_of_err;
#endif #endif
ret = asoc_simple_set_dailink_name(dev, dai_link, ret = asoc_simple_set_dailink_name(dev, dai_link,