]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ASoC: simple-card: Drop node->name checking
authorNicolin Chen <Guangyu.Chen@freescale.com>
Thu, 24 Apr 2014 11:13:58 +0000 (19:13 +0800)
committerMark Brown <broonie@linaro.org>
Thu, 24 Apr 2014 12:20:11 +0000 (13:20 +0100)
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 <Guangyu.Chen@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/generic/simple-card.c

index 3f2e5807d7eb1f3997d655e619ecf2bf92d19618..383a4a18d51fe4a1c5c7447dbe0955f844c4cfe0 100644 (file)
@@ -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);