From 58954d2bf39201c115bcff0dc3bdebf5557e9c5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Thu, 3 Jan 2019 11:38:45 +0200 Subject: amdfam10 boards: Drop variable sbdn_rs780 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It mirrors value of sysconf.sbdn. Change-Id: I3cb611f1ea33da19e63523bc0fe99f2792eebc57 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/30633 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans Reviewed-by: Angel Pons --- src/mainboard/avalue/eax-785e/get_bus_conf.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/mainboard/avalue') diff --git a/src/mainboard/avalue/eax-785e/get_bus_conf.c b/src/mainboard/avalue/eax-785e/get_bus_conf.c index a60080eac8..f08ad8633b 100644 --- a/src/mainboard/avalue/eax-785e/get_bus_conf.c +++ b/src/mainboard/avalue/eax-785e/get_bus_conf.c @@ -45,7 +45,6 @@ u32 hcdnx[] = { }; -static u32 sbdn_rs780; void get_bus_conf(void) { @@ -62,7 +61,6 @@ void get_bus_conf(void) get_pci1234(); sysconf.sbdn = (sysconf.hcdn[0] & 0xff); - sbdn_rs780 = sysconf.sbdn; memset(bus_sb800, 0, sizeof(bus_sb800)); @@ -90,7 +88,7 @@ void get_bus_conf(void) /* rs780 */ for (i = 1; i < ARRAY_SIZE(bus_rs780); i++) { - dev = dev_find_slot(bus_rs780[0], PCI_DEVFN(sbdn_rs780 + i, 0)); + dev = dev_find_slot(bus_rs780[0], PCI_DEVFN(sysconf.sbdn + i, 0)); if (dev) { bus_rs780[i] = pci_read_config8(dev, PCI_SECONDARY_BUS); if(255 != bus_rs780[i]) { -- cgit v1.2.3