From 8052fe459c777db7985bdfed3ca198a556fc970c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Thu, 3 Jan 2019 11:38:43 +0200 Subject: amdfam10 boards: Drop const variables sbdn_sb800 and sbdn_sb700 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit They evaluate to const zero and obscure PCI_DEVFN() use. Change-Id: I8bd8dced62094d5ee8e957241ac29ead054f5c05 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/30632 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans Reviewed-by: Angel Pons --- src/mainboard/asus/m4a785-m/mptable.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/mainboard/asus/m4a785-m/mptable.c') diff --git a/src/mainboard/asus/m4a785-m/mptable.c b/src/mainboard/asus/m4a785-m/mptable.c index 4ea9e66913..1fd89cc2de 100644 --- a/src/mainboard/asus/m4a785-m/mptable.c +++ b/src/mainboard/asus/m4a785-m/mptable.c @@ -24,7 +24,6 @@ extern u8 bus_sb700[2]; extern u32 apicid_sb700; -extern u32 sbdn_sb700; static void *smp_write_config_table(void *v) { @@ -47,7 +46,7 @@ static void *smp_write_config_table(void *v) dev = dev_find_slot(bus_sb700[0], - PCI_DEVFN(sbdn_sb700 + 0x14, 0)); + PCI_DEVFN(0x14, 0)); if (dev) { dword = pci_read_config32(dev, 0x74) & 0xfffffff0; smp_write_ioapic(mc, apicid_sb700, -- cgit v1.2.3