diff options
author | Eric Lai <ericr_lai@compal.corp-partner.google.com> | 2021-03-02 12:21:30 +0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-03-04 08:47:58 +0000 |
commit | f8c167549bc39a8ff94e3f7ac777940bdae81d56 (patch) | |
tree | 433b99c6f87d7888325201a9eea968ab02397187 /src/drivers | |
parent | 16b34ed8f85896157aa7eccd67b81d0ef4c5552e (diff) | |
download | coreboot-f8c167549bc39a8ff94e3f7ac777940bdae81d56.tar.xz |
drivers/generic/max98357a: Use depends HAVE_ACPI_TABLES
Replace if HAVE_ACPI_TABLES statement with depends HAVE_ACPI_TABLES.
Signed-off-by: Eric Lai <ericr_lai@compal.corp-partner.google.com>
Change-Id: Ie6ebfde49f0f3c205e174c5113feb75444dedba8
Reviewed-on: https://review.coreboot.org/c/coreboot/+/51166
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/generic/max98357a/Kconfig | 1 | ||||
-rw-r--r-- | src/drivers/generic/max98357a/max98357a.c | 5 |
2 files changed, 1 insertions, 5 deletions
diff --git a/src/drivers/generic/max98357a/Kconfig b/src/drivers/generic/max98357a/Kconfig index a7104f19c2..561577969a 100644 --- a/src/drivers/generic/max98357a/Kconfig +++ b/src/drivers/generic/max98357a/Kconfig @@ -1,2 +1,3 @@ config DRIVERS_GENERIC_MAX98357A bool + depends on HAVE_ACPI_TABLES diff --git a/src/drivers/generic/max98357a/max98357a.c b/src/drivers/generic/max98357a/max98357a.c index 9ae4bf4658..7a18b98629 100644 --- a/src/drivers/generic/max98357a/max98357a.c +++ b/src/drivers/generic/max98357a/max98357a.c @@ -8,8 +8,6 @@ #include <gpio.h> #include "chip.h" -#if CONFIG(HAVE_ACPI_TABLES) - #define MAX98357A_ACPI_NAME "MAXM" static void max98357a_fill_ssdt(const struct device *dev) @@ -65,15 +63,12 @@ static const char *max98357a_acpi_name(const struct device *dev) { return MAX98357A_ACPI_NAME; } -#endif static struct device_operations max98357a_ops = { .read_resources = noop_read_resources, .set_resources = noop_set_resources, -#if CONFIG(HAVE_ACPI_TABLES) .acpi_name = max98357a_acpi_name, .acpi_fill_ssdt = max98357a_fill_ssdt, -#endif }; static void max98357a_enable(struct device *dev) |