summaryrefslogtreecommitdiff
path: root/src/southbridge/nvidia/mcp55/smbus.c
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2017-06-24 21:30:42 -0600
committerMartin Roth <martinroth@google.com>2017-07-13 23:54:56 +0000
commit1858d6a90a81aac67cde90190d8a332b2e817c9d (patch)
treee9d62ce12354e419a8c055da12d092642fac4d88 /src/southbridge/nvidia/mcp55/smbus.c
parent32c27c2f850c64cdbf78acd00f0c2ce4b535af64 (diff)
src/southbridge: add IS_ENABLED() around Kconfig symbol references
Change-Id: Ie965cbcf7f7b6f6c9e9a69e2a1ff0ba491246cbe Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/20353 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/southbridge/nvidia/mcp55/smbus.c')
-rw-r--r--src/southbridge/nvidia/mcp55/smbus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/southbridge/nvidia/mcp55/smbus.c b/src/southbridge/nvidia/mcp55/smbus.c
index 7829a2843c..c41445bcab 100644
--- a/src/southbridge/nvidia/mcp55/smbus.c
+++ b/src/southbridge/nvidia/mcp55/smbus.c
@@ -89,7 +89,7 @@ static struct smbus_bus_operations lops_smbus_bus = {
.write_byte = lsmbus_write_byte,
};
-#if CONFIG_HAVE_ACPI_TABLES
+#if IS_ENABLED(CONFIG_HAVE_ACPI_TABLES)
unsigned pm_base;
#endif
@@ -108,7 +108,7 @@ static void mcp55_sm_read_resources(device_t dev)
static void mcp55_sm_init(device_t dev)
{
-#if CONFIG_HAVE_ACPI_TABLES
+#if IS_ENABLED(CONFIG_HAVE_ACPI_TABLES)
struct resource *res;
res = find_resource(dev, 0x60);