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:
parent
61022875b3
commit
b9272dcee8
1 changed files with 1 additions and 3 deletions
|
@ -378,9 +378,7 @@ static int seeed_voice_card_dai_link_of(struct device_node *node,
|
|||
goto dai_link_of_err;
|
||||
|
||||
#if _SINGLE_CODEC
|
||||
ret = asoc_simple_canonicalize_platform(dai_link);
|
||||
if (ret < 0)
|
||||
goto dai_link_of_err;
|
||||
asoc_simple_canonicalize_platform(dai_link);
|
||||
#endif
|
||||
|
||||
ret = asoc_simple_set_dailink_name(dev, dai_link,
|
||||
|
|
Loading…
Reference in a new issue