linux/sound/soc/loongson
Dan Carpenter 8fba13f02c
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: d24028606e ("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>
2023-06-19 12:59:28 +01:00
..
Kconfig ASoC: loongson: add PCI dependency 2023-06-16 12:56:08 +01:00
loongson_card.c ASoC: loongson: fix error codes in loongson_card_parse_acpi() 2023-06-19 12:59:28 +01:00
loongson_dma.c
loongson_dma.h
loongson_i2s.c ASoC: loongson: fix compile testing on 32-bit 2023-06-16 12:56:09 +01:00
loongson_i2s.h
loongson_i2s_pci.c
Makefile