dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Daniel Mack 2012-11-30 11:28:56 +01:00 committed by Mark Brown
parent 26047e2d6b
commit b8455c9f6f
1 changed files with 1 additions and 1 deletions

View 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;
}