From 30a4a936cb99dbed9206ca49ae39e897497274b9 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Mon, 15 Feb 2010 23:27:48 +0000 Subject: fix clock polling in pc97317 driver. Signed-off-by: Stefan Reinauer Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5129 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/superio/nsc/pc97317/pc97317_early_serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/superio/nsc') diff --git a/src/superio/nsc/pc97317/pc97317_early_serial.c b/src/superio/nsc/pc97317/pc97317_early_serial.c index c538fa8071..175d490f1b 100644 --- a/src/superio/nsc/pc97317/pc97317_early_serial.c +++ b/src/superio/nsc/pc97317/pc97317_early_serial.c @@ -41,7 +41,7 @@ static void pc97317_enable_serial(device_t dev, unsigned iobase) outb(inb(PM_BASE + 1) | 0x07, PM_BASE + 1); /* Wait for the clock to stabilise */ - while(!inb(PM_BASE + 1 & 0x80)) + while(!(inb(PM_BASE + 1) & 0x80)) ; /* Set the base address of the port */ -- cgit v1.2.3