summaryrefslogtreecommitdiff
path: root/src/drivers/pc80/pc
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2017-06-24 14:07:25 -0600
committerMartin Roth <martinroth@google.com>2017-07-13 23:54:48 +0000
commit32c27c2f850c64cdbf78acd00f0c2ce4b535af64 (patch)
tree02eb0815d631f0f0e4859c3f43c6c81e3253feb1 /src/drivers/pc80/pc
parente6ff1596e7417d24746162b3a567bcb6dd9ef988 (diff)
downloadcoreboot-32c27c2f850c64cdbf78acd00f0c2ce4b535af64.tar.xz
src/drivers: 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: Ib3a1cf04482a8f19b159c31cfb16a7b492748d91 Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/20352 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/drivers/pc80/pc')
-rw-r--r--src/drivers/pc80/pc/i8254.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/pc80/pc/i8254.c b/src/drivers/pc80/pc/i8254.c
index 5851ec08a0..eb91bf6f01 100644
--- a/src/drivers/pc80/pc/i8254.c
+++ b/src/drivers/pc80/pc/i8254.c
@@ -32,7 +32,7 @@ void setup_i8254(void)
outb(0x12, TIMER1_PORT);
}
-#if CONFIG_UDELAY_TIMER2
+#if IS_ENABLED(CONFIG_UDELAY_TIMER2)
static void load_timer2(unsigned int ticks)
{
/* Set up the timer gate, turn off the speaker */