mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
ASoC: simple-card: Drop node->name checking
The current simple-card driver limits the DT node name to "sound". Any of other names is forbidden while actually we should allow DT to pass other node names. And if this function is being called, the node must already have the compatible "simple-audio-card" in DTB. So there should be no need to check the name here. Signed-off-by: Nicolin Chen <[email protected]> Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
parent
b3ca11ff59
commit
50e6c718a1
1 changed files with 1 additions and 2 deletions
|
|
@ -156,8 +156,7 @@ static int simple_card_dai_link_of(struct device_node *node,
|
|||
char *prefix = "";
|
||||
int ret;
|
||||
|
||||
if (!strcmp("sound", node->name))
|
||||
prefix = "simple-audio-card,";
|
||||
prefix = "simple-audio-card,";
|
||||
|
||||
daifmt = snd_soc_of_parse_daifmt(node, prefix,
|
||||
&bitclkmaster, &framemaster);
|
||||
|
|
|
|||
Loading…
Reference in a new issue