summaryrefslogtreecommitdiff
path: root/drivers/sound
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2022-06-12 16:15:34 +0300
committerTom Rini <trini@konsulko.com>2022-07-08 16:05:47 +0300
commitd1a03e6bbc4e025797af17168b4909b3b14a2590 (patch)
treecf71280d00272680407eed197052223aa2475178 /drivers/sound
parent3ca32c806b266d8fb0a3f4d7b8c7f6ef75f43cb3 (diff)
downloadu-boot-d1a03e6bbc4e025797af17168b4909b3b14a2590.tar.xz
sound: enable building DA7219 driver with ACPIGEN=n
sandbox_defconfig builds the DA7219 driver. It should be possible to build the sandbox without ACPI support. ACPI support in the DA7219 driver is only needed when creating an ACPI table. Fix building with ACPIGEN=n. Fixes: 0324b7123e22 ("sound: Add an ACPI driver for Dialog Semicondutor da7219") Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'drivers/sound')
-rw-r--r--drivers/sound/da7219.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/sound/da7219.c b/drivers/sound/da7219.c
index 8d674bcb4f..c1edef4436 100644
--- a/drivers/sound/da7219.c
+++ b/drivers/sound/da7219.c
@@ -23,6 +23,7 @@
#define DA7219_ACPI_HID "DLGS7219"
+__maybe_unused
static int da7219_acpi_fill_ssdt(const struct udevice *dev,
struct acpi_ctx *ctx)
{
@@ -171,10 +172,12 @@ static int da7219_acpi_setup_nhlt(const struct udevice *dev,
#endif
struct acpi_ops da7219_acpi_ops = {
+#ifdef CONFIG_ACPIGEN
.fill_ssdt = da7219_acpi_fill_ssdt,
#ifdef CONFIG_X86
.setup_nhlt = da7219_acpi_setup_nhlt,
#endif
+#endif
};
static const struct udevice_id da7219_ids[] = {