Fix CONFIG_ use in i8254.c

We always define CONFIG_ variables, even if they're not set.
Hence, remove the check whether CONFIG_UDELAY_TIMER2 is defined

Change-Id: Iefdf2389941f2cc63ae4f13ac6b213da4c96b201
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/1694
Reviewed-by: Marc Jones <marcj303@gmail.com>
Tested-by: build bot (Jenkins)
This commit is contained in:
Stefan Reinauer 2012-08-07 14:49:01 -07:00 committed by Stefan Reinauer
parent 52095f5854
commit 6f4297677c
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ void setup_i8254(void)
outb(0x12, TIMER1_PORT); outb(0x12, TIMER1_PORT);
} }
#if defined(CONFIG_UDELAY_TIMER2) && CONFIG_UDELAY_TIMER2 #if CONFIG_UDELAY_TIMER2
static void load_timer2(unsigned int ticks) static void load_timer2(unsigned int ticks)
{ {
/* Set up the timer gate, turn off the speaker */ /* Set up the timer gate, turn off the speaker */