Home
last modified time | relevance | path

Searched hist:"8 fba13f0" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/sound/soc/loongson/
H A Dloongson_card.c8fba13f0 Mon Jun 19 04:46:21 CDT 2023 Dan Carpenter <dan.carpenter@linaro.org> ASoC: loongson: fix error codes in loongson_card_parse_acpi()

The acpi_node_get_property_reference() function returns kernel error
codes and not ACPI error codes. So, although it does not affect the
compiled code, using the ACPI_FAILURE() macro is wrong. Secondly,
if the is_acpi_device_node() function returns false, then we should
return -ENOENT instead of returning success.

Fixes: d24028606e76 ("ASoC: loongson: Add Loongson ASoC Sound Card Support")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/fb14815d-2f9a-4b42-b193-cec61e7417ca@moroto.mountain
Signed-off-by: Mark Brown <broonie@kernel.org>