summaryrefslogtreecommitdiff
path: root/src/console/init.c
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2017-06-09 09:27:08 -0600
committerMartin Roth <martinroth@google.com>2017-06-12 04:08:55 +0200
commit53de6cd1c3597f38b69509ea5a34f61c71ca1f5d (patch)
tree405433fa99fddb0bc271b4c411e88d7dd148c1c2 /src/console/init.c
parent6a3d0bfc1f7e0e7b52c991d144e825ca7edf628e (diff)
downloadcoreboot-53de6cd1c3597f38b69509ea5a34f61c71ca1f5d.tar.xz
src/console: add IS_ENABLED() around Kconfig symbol references
Some of these can be changed from #if to if(), but that will happen in a follow-on commmit. Change-Id: I5a674cd7a360a0dd040c859ec1f8d760d7c83364 Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/20130 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/console/init.c')
-rw-r--r--src/console/init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/console/init.c b/src/console/init.c
index 1029e6b14f..c1565a420f 100644
--- a/src/console/init.c
+++ b/src/console/init.c
@@ -33,7 +33,7 @@ static int console_loglevel = CONFIG_DEFAULT_CONSOLE_LOGLEVEL;
static inline int get_log_level(void)
{
- if (CONSOLE_LEVEL_CONST)
+ if (IS_ENABLED(CONSOLE_LEVEL_CONST))
return CONFIG_DEFAULT_CONSOLE_LOGLEVEL;
return console_loglevel;
@@ -65,7 +65,7 @@ asmlinkage void console_init(void)
{
init_log_level();
-#if CONFIG_EARLY_PCI_BRIDGE && !defined(__SMM__)
+#if IS_ENABLED(CONFIG_EARLY_PCI_BRIDGE) && !defined(__SMM__)
pci_early_bridge_init();
#endif