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

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.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent c3061bc7
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -759,8 +759,7 @@ static int tas2770_i2c_probe(struct i2c_client *client,
		}
	}

	tas2770->reset_gpio = devm_gpiod_get_optional(tas2770->dev,
							  "reset-gpio",
	tas2770->reset_gpio = devm_gpiod_get_optional(tas2770->dev, "reset",
						      GPIOD_OUT_HIGH);
	if (IS_ERR(tas2770->reset_gpio)) {
		if (PTR_ERR(tas2770->reset_gpio) == -EPROBE_DEFER) {