diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2014-07-15 14:38:51 +0300 |
---|---|---|
committer | Rudolf Marek <r.marek@assembler.cz> | 2014-07-17 21:48:12 +0200 |
commit | 53584fa32f18eafa1f71be511f20d388550b918b (patch) | |
tree | 51b9e54489035ca3a7bdfedeb2daae7821a8f69e /src/mainboard/supermicro/h8scm_fam10/get_bus_conf.c | |
parent | c4561e24bbdc418e49aa6dbb2689c78a51061ce0 (diff) |
AMD get_bus_conf(): Drop bus_type array
Only ever used as lvalue, so no point creating the array.
Change-Id: I6699dfae9377a895e9bc4a52579d00ddcfa60a9f
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/6277
Tested-by: build bot (Jenkins)
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-by: Rudolf Marek <r.marek@assembler.cz>
Diffstat (limited to 'src/mainboard/supermicro/h8scm_fam10/get_bus_conf.c')
-rw-r--r-- | src/mainboard/supermicro/h8scm_fam10/get_bus_conf.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/mainboard/supermicro/h8scm_fam10/get_bus_conf.c b/src/mainboard/supermicro/h8scm_fam10/get_bus_conf.c index 142c9e6982..0560180f36 100644 --- a/src/mainboard/supermicro/h8scm_fam10/get_bus_conf.c +++ b/src/mainboard/supermicro/h8scm_fam10/get_bus_conf.c @@ -54,7 +54,6 @@ u32 hcdnx[] = { 0x20202020, }; -u32 bus_type[256]; u32 sbdn_sr5650; u32 sbdn_sp5100; @@ -67,7 +66,7 @@ void get_bus_conf(void) { u32 apicid_base; device_t dev; - int i, j; + int i; if (get_bus_conf_done == 1) return; /* do it only once */ @@ -92,16 +91,10 @@ void get_bus_conf(void) bus_sr5650[i] = 0; } - for (i = 0; i < 256; i++) { - bus_type[i] = 0; /* default ISA bus. */ - } - - bus_type[0] = 1; /* pci */ bus_sr5650[0] = (sysconf.pci1234[0] >> 16) & 0xff; bus_sp5100[0] = bus_sr5650[0]; - bus_type[bus_sr5650[0]] = 1; /* sp5100 */ dev = dev_find_slot(bus_sp5100[0], PCI_DEVFN(sbdn_sp5100 + 0x14, 4)); @@ -109,8 +102,6 @@ void get_bus_conf(void) bus_sp5100[1] = pci_read_config8(dev, PCI_SECONDARY_BUS); bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS); bus_isa++; - for (j = bus_sp5100[1]; j < bus_isa; j++) - bus_type[j] = 1; } /* sr5650 */ @@ -121,7 +112,6 @@ void get_bus_conf(void) if(255 != bus_sr5650[i]) { bus_isa = pci_read_config8(dev, PCI_SUBORDINATE_BUS); bus_isa++; - bus_type[bus_sr5650[i]] = 1; /* PCI bus. */ } } } |