mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 20:14:06 +02:00
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: 1a476abc72 ("tas2770: add tas2770 smart PA kernel driver")
Signed-off-by: Dan Murphy <dmurphy@ti.com>
Link: https://lore.kernel.org/r/20200720181202.31000-2-dmurphy@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
c3061bc73f
commit
58b868f51d
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user