summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2012-11-30 11:28:56 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-12-02 13:01:56 +0900
commitb8455c9f6f661fb9bcb791370478d6d15c9bf2b3 (patch)
tree2201fea704cdc74c93489c08f4c2fe71c840e78a /sound
parent26047e2d6bde5b2e1b791e0ec1c3234894fdf3fa (diff)
downloadop-kernel-dev-b8455c9f6f661fb9bcb791370478d6d15c9bf2b3.zip
op-kernel-dev-b8455c9f6f661fb9bcb791370478d6d15c9bf2b3.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/cs4271.c b/sound/soc/codecs/cs4271.c
index f07d1b7..449a98b 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;
}
OpenPOWER on IntegriCloud