ASoC: cs4271: fix property check
authorDaniel Mack <zonque@gmail.com>
Fri, 30 Nov 2012 10:28:56 +0000 (11:28 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 2 Dec 2012 04:01:56 +0000 (13:01 +0900)
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>
sound/soc/codecs/cs4271.c

index f07d1b7d6c69ab798c95272893e5e5fe43e1c8c1..449a98b8874c4e94885af79c29e2666145719f4e 100644 (file)
@@ -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;
        }