Skip to content

Commit 807563c

Browse files
Dan Carpentertiwai
authored andcommitted
ALSA: hda: tas2781-spi: Fix error code in tas2781_read_acpi()
Propagate the error code from devm_gpiod_get_index_optional(). The current code returns success. Fixes: bb5f86e ("ALSA: hda/tas2781: Add tas2781 hda SPI driver") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Link: https://patch.msgid.link/6103e81a-13bf-4eab-89af-f6830c14e14c@stanley.mountain Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent be125a0 commit 807563c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sound/pci/hda/tas2781_hda_spi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,7 @@ static int tas2781_read_acpi(struct tas2781_hda *tas_hda,
447447
p->reset = devm_gpiod_get_index_optional(physdev, "reset",
448448
p->index, GPIOD_OUT_LOW);
449449
if (IS_ERR(p->reset)) {
450+
ret = PTR_ERR(p->reset);
450451
dev_err_probe(p->dev, ret, "Failed on reset GPIO\n");
451452
goto err;
452453
}

0 commit comments

Comments
 (0)