From afa9aefce00551d5d6227ad0081389b972dd767f Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Thu, 18 May 2017 16:12:07 +0200 Subject: include/console: Use IS_ENABLED() macro MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I3d0c61c37399e96c1d154c1d3af5c47db967a07a Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/19763 Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) Reviewed-by: Philippe Mathieu-Daudé --- src/include/console/ne2k.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/include/console/ne2k.h') diff --git a/src/include/console/ne2k.h b/src/include/console/ne2k.h index ea2a139ad2..7b43084f38 100644 --- a/src/include/console/ne2k.h +++ b/src/include/console/ne2k.h @@ -27,7 +27,7 @@ void ne2k_transmit(unsigned int eth_nic_base); #define ne2k_append_data_byte(d, base) ne2k_append_data(&d, 1, base) #endif -#if CONFIG_CONSOLE_NE2K && (ENV_ROMSTAGE || ENV_RAMSTAGE) +#if IS_ENABLED(CONFIG_CONSOLE_NE2K) && (ENV_ROMSTAGE || ENV_RAMSTAGE) static inline void __ne2k_init(void) { ne2k_init(CONFIG_CONSOLE_NE2K_IO_PORT); -- cgit v1.2.3