Commit 58b868f5 authored by Dan Murphy's avatar Dan Murphy Committed by Mark Brown

ASoC: tas2770: Fix reset gpio property name

Fix the reset property name when allocating the GPIO descriptor.
The gpiod_get_optional appends either the -gpio or -gpios suffix to the
name.

Fixes: 1a476abc ("tas2770: add tas2770 smart PA kernel driver")
Signed-off-by: default avatarDan Murphy <dmurphy@ti.com>
Link: https://lore.kernel.org/r/20200720181202.31000-2-dmurphy@ti.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent c3061bc7
...@@ -759,8 +759,7 @@ static int tas2770_i2c_probe(struct i2c_client *client, ...@@ -759,8 +759,7 @@ static int tas2770_i2c_probe(struct i2c_client *client,
} }
} }
tas2770->reset_gpio = devm_gpiod_get_optional(tas2770->dev, tas2770->reset_gpio = devm_gpiod_get_optional(tas2770->dev, "reset",
"reset-gpio",
GPIOD_OUT_HIGH); GPIOD_OUT_HIGH);
if (IS_ERR(tas2770->reset_gpio)) { if (IS_ERR(tas2770->reset_gpio)) {
if (PTR_ERR(tas2770->reset_gpio) == -EPROBE_DEFER) { if (PTR_ERR(tas2770->reset_gpio) == -EPROBE_DEFER) {
......
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