Fix a stupid bug in rs780 and rs690 code.
Signed-off-by: Zheng Bao <zheng.bao@amd.com> Acked-by: Scott Duplichan <scott@notabs.org> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5947 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
89122856e0
commit
f2573bd237
|
@ -72,7 +72,7 @@ void pci_ext_write_config32(device_t nb_dev, device_t dev, u32 reg_pos, u32 mask
|
|||
reg &= ~mask;
|
||||
reg |= val;
|
||||
if (reg != reg_old) {
|
||||
*((u32 *) addr) = val;
|
||||
*((u32 *) addr) = reg;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -70,7 +70,7 @@ void pci_ext_write_config32(device_t nb_dev, device_t dev, u32 reg_pos, u32 mask
|
|||
reg &= ~mask;
|
||||
reg |= val;
|
||||
if (reg != reg_old) {
|
||||
*((u32 *) addr) = val;
|
||||
*((u32 *) addr) = reg;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue