reg is only used inside the #if clause, so declare it there. trivial.
Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de> Acked-by: Patrick Georgi <patrick.georgi@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5989 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
45057d2753
commit
f3e8542cc4
|
@ -913,9 +913,9 @@ static void finalize_node_setup(struct sys_info *sysinfo)
|
||||||
{
|
{
|
||||||
u8 i;
|
u8 i;
|
||||||
u8 nodes = get_nodes();
|
u8 nodes = get_nodes();
|
||||||
u32 reg;
|
|
||||||
|
|
||||||
#if CONFIG_RAMINIT_SYSINFO
|
#if CONFIG_RAMINIT_SYSINFO
|
||||||
|
u32 reg;
|
||||||
/* read Node0 F0_0x64 bit [8:10] to find out SbLink # */
|
/* read Node0 F0_0x64 bit [8:10] to find out SbLink # */
|
||||||
reg = pci_read_config32(NODE_HT(0), 0x64);
|
reg = pci_read_config32(NODE_HT(0), 0x64);
|
||||||
sysinfo->sblk = (reg >> 8) & 7;
|
sysinfo->sblk = (reg >> 8) & 7;
|
||||||
|
|
Loading…
Reference in New Issue