Skip to content

Commit

Permalink
ASoC: cs4271: fix property check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Daniel Mack authored and Mark Brown committed Dec 2, 2012
1 parent 26047e2 commit b8455c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/cs4271.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b8455c9

Please sign in to comment.