Small bugfix in i82801xx_lpc.c.

Signed-off-by: Corey Osgood <corey.osgood@gmail.com>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2721 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Corey Osgood 2007-06-14 12:04:19 +00:00 committed by Uwe Hermann
parent c0eb5e0830
commit d9e56e9cd3
1 changed files with 2 additions and 2 deletions

View File

@ -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);