From f8574bf4a7627228b9cdd14aa77589ac5b355c08 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Sat, 24 Jun 2017 21:38:19 -0600 Subject: src/superio: add IS_ENABLED() around Kconfig symbol references Change-Id: Ie9a7127b50db8dc9a2b543843ca4d815afe3d07e Signed-off-by: Martin Roth Reviewed-on: https://review.coreboot.org/20351 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/superio/via/vt1211/vt1211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/superio/via/vt1211/vt1211.c') diff --git a/src/superio/via/vt1211/vt1211.c b/src/superio/via/vt1211/vt1211.c index c40741ab4c..28586baa22 100644 --- a/src/superio/via/vt1211/vt1211.c +++ b/src/superio/via/vt1211/vt1211.c @@ -112,7 +112,7 @@ static void vt1211_pnp_set_resources(struct device *dev) { struct resource *res; -#if CONFIG_CONSOLE_SERIAL && CONFIG_DRIVERS_UART_8250IO +#if IS_ENABLED(CONFIG_CONSOLE_SERIAL) && IS_ENABLED(CONFIG_DRIVERS_UART_8250IO) /* TODO: Do the same for SP2? */ if (dev->path.pnp.device == VT1211_SP1) { for (res = dev->resource_list; res; res = res->next) { -- cgit v1.2.3