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 13:01:56 +0900 |
commit | b8455c9f6f661fb9bcb791370478d6d15c9bf2b3 (patch) | |
tree | 2201fea704cdc74c93489c08f4c2fe71c840e78a /sound | |
parent | 26047e2d6bde5b2e1b791e0ec1c3234894fdf3fa (diff) | |
download | linux-stable-b8455c9f6f661fb9bcb791370478d6d15c9bf2b3.tar.gz linux-stable-b8455c9f6f661fb9bcb791370478d6d15c9bf2b3.tar.bz2 linux-stable-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; } |