Author: uwe Date: 2007-06-14 14:04:19 +0200 (Thu, 14 Jun 2007) New Revision: 2721
Modified: trunk/LinuxBIOSv2/src/southbridge/intel/i82801xx/i82801xx_lpc.c Log: Small bugfix in i82801xx_lpc.c.
Signed-off-by: Corey Osgood corey.osgood@gmail.com Acked-by: Uwe Hermann uwe@hermann-uwe.de
Modified: trunk/LinuxBIOSv2/src/southbridge/intel/i82801xx/i82801xx_lpc.c =================================================================== --- trunk/LinuxBIOSv2/src/southbridge/intel/i82801xx/i82801xx_lpc.c 2007-06-14 12:02:38 UTC (rev 2720) +++ trunk/LinuxBIOSv2/src/southbridge/intel/i82801xx/i82801xx_lpc.c 2007-06-14 12:04:19 UTC (rev 2721) @@ -89,8 +89,8 @@ 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);