From d9e56e9cd3f5b4b35917c010de60369285bb39da Mon Sep 17 00:00:00 2001 From: Corey Osgood Date: Thu, 14 Jun 2007 12:04:19 +0000 Subject: Small bugfix in i82801xx_lpc.c. Signed-off-by: Corey Osgood Acked-by: Uwe Hermann git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2721 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/southbridge/intel/i82801xx/i82801xx_lpc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/southbridge') diff --git a/src/southbridge/intel/i82801xx/i82801xx_lpc.c b/src/southbridge/intel/i82801xx/i82801xx_lpc.c index 3f9044c87a..c0d783d9a9 100644 --- a/src/southbridge/intel/i82801xx/i82801xx_lpc.c +++ b/src/southbridge/intel/i82801xx/i82801xx_lpc.c @@ -89,8 +89,8 @@ void i82801xx_rtc_init(struct device *dev) uint8_t reg8; uint32_t reg32; int rtc_failed; - byte = pci_read_config8(dev, GEN_PMCON_3); - rtc_failed = byte & RTC_BATTERY_DEAD; + reg8 = pci_read_config8(dev, GEN_PMCON_3); + rtc_failed = reg8 & RTC_BATTERY_DEAD; if (rtc_failed) { reg8 &= ~(1 << 1); /* preserve the power fail state */ pci_write_config8(dev, GEN_PMCON_3, reg8); -- cgit v1.2.3