diff options
author | Daniel Mack <zonque@gmail.com> | 2012-11-30 11:28:56 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-12-02 05:01:56 +0100 |
commit | b8455c9f6f661fb9bcb791370478d6d15c9bf2b3 (patch) | |
tree | 2201fea704cdc74c93489c08f4c2fe71c840e78a /sound | |
parent | ASoC: cs4271: fix sparse warning (diff) | |
download | linux-b8455c9f6f661fb9bcb791370478d6d15c9bf2b3.tar.xz linux-b8455c9f6f661fb9bcb791370478d6d15c9bf2b3.zip |
ASoC: cs4271: fix property check
The driver had the property check for 'cirrus,amutec_eq_bmutec' the
wrong way around. That happens if you misspell the property in the
bindings during tests.
Signed-off-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/cs4271.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/cs4271.c b/sound/soc/codecs/cs4271.c index f07d1b7d6c69..449a98b8874c 100644 --- a/sound/soc/codecs/cs4271.c +++ b/sound/soc/codecs/cs4271.c @@ -481,7 +481,7 @@ static int cs4271_probe(struct snd_soc_codec *codec) gpio_nreset = of_get_named_gpio(codec->dev->of_node, "reset-gpio", 0); - if (!of_get_property(codec->dev->of_node, + if (of_get_property(codec->dev->of_node, "cirrus,amutec-eq-bmutec", NULL)) amutec_eq_bmutec = true; } |