summaryrefslogtreecommitdiffstats
path: root/sound/soc/generic
diff options
context:
space:
mode:
authorNicolin Chen <Guangyu.Chen@freescale.com>2014-04-24 19:13:58 +0800
committerMark Brown <broonie@linaro.org>2014-04-24 13:20:11 +0100
commit50e6c718a1eb2ae6d05f22615d8268b026175a4a (patch)
tree0f2de38ac29b3ba054a1dc5d1dc5cd0afb0fa3ec /sound/soc/generic
parentb3ca11ff59bc5842b01f13421a17e6d9a8936784 (diff)
downloadop-kernel-dev-50e6c718a1eb2ae6d05f22615d8268b026175a4a.zip
op-kernel-dev-50e6c718a1eb2ae6d05f22615d8268b026175a4a.tar.gz
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 <Guangyu.Chen@freescale.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/generic')
-rw-r--r--sound/soc/generic/simple-card.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c
index 3f2e580..383a4a1 100644
--- a/sound/soc/generic/simple-card.c
+++ b/sound/soc/generic/simple-card.c
@@ -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);
OpenPOWER on IntegriCloud