Commit b8455c9f authored by Daniel Mack's avatar Daniel Mack Committed by Mark Brown

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: default avatarDaniel Mack <zonque@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 26047e2d
...@@ -481,7 +481,7 @@ static int cs4271_probe(struct snd_soc_codec *codec) ...@@ -481,7 +481,7 @@ static int cs4271_probe(struct snd_soc_codec *codec)
gpio_nreset = of_get_named_gpio(codec->dev->of_node, gpio_nreset = of_get_named_gpio(codec->dev->of_node,
"reset-gpio", 0); "reset-gpio", 0);
if (!of_get_property(codec->dev->of_node, if (of_get_property(codec->dev->of_node,
"cirrus,amutec-eq-bmutec", NULL)) "cirrus,amutec-eq-bmutec", NULL))
amutec_eq_bmutec = true; amutec_eq_bmutec = true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment