diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-01-03 11:38:43 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-01-04 17:20:51 +0000 |
commit | 8052fe459c777db7985bdfed3ca198a556fc970c (patch) | |
tree | c4a421408e507161c0f5ab71d1e7c5a4ffd00ec0 /src/mainboard/iei/kino-780am2-fam10/get_bus_conf.c | |
parent | 0571afe5d2b576f8e89eaabf4bbd0f7a31fd0a62 (diff) |
amdfam10 boards: Drop const variables sbdn_sb800 and sbdn_sb700
They evaluate to const zero and obscure PCI_DEVFN() use.
Change-Id: I8bd8dced62094d5ee8e957241ac29ead054f5c05
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/30632
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/mainboard/iei/kino-780am2-fam10/get_bus_conf.c')
-rw-r--r-- | src/mainboard/iei/kino-780am2-fam10/get_bus_conf.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mainboard/iei/kino-780am2-fam10/get_bus_conf.c b/src/mainboard/iei/kino-780am2-fam10/get_bus_conf.c index 299393791f..97d9e28cf3 100644 --- a/src/mainboard/iei/kino-780am2-fam10/get_bus_conf.c +++ b/src/mainboard/iei/kino-780am2-fam10/get_bus_conf.c @@ -46,7 +46,6 @@ u32 hcdnx[] = { }; static u32 sbdn_rs780; -u32 sbdn_sb700; void get_bus_conf(void) { @@ -64,7 +63,6 @@ void get_bus_conf(void) sysconf.sbdn = (sysconf.hcdn[0] & 0xff); sbdn_rs780 = sysconf.sbdn; - sbdn_sb700 = 0; for (i = 0; i < 2; i++) { bus_sb700[i] = 0; @@ -77,7 +75,7 @@ void get_bus_conf(void) bus_sb700[0] = bus_rs780[0]; /* sb700 */ - dev = dev_find_slot(bus_sb700[0], PCI_DEVFN(sbdn_sb700 + 0x14, 4)); + dev = dev_find_slot(bus_sb700[0], PCI_DEVFN(0x14, 4)); if (dev) { bus_sb700[1] = pci_read_config8(dev, PCI_SECONDARY_BUS); } |