From f564606170a700b7d785d53bb20bab7d036b515a Mon Sep 17 00:00:00 2001 From: Damien Zammit Date: Mon, 18 Jan 2016 16:29:42 +1100 Subject: [PATCH] nb/intel/pineview: Fix decode_pciebar() Fixes bug that decode_pciebar() function was bypassed due to PCI_DEV(0,0,0) being detected as zero and function returning 0. Change-Id: Ia79bcebbe3ba36f479cbb24dbbb163a031d9c099 Signed-off-by: Damien Zammit Reviewed-on: https://review.coreboot.org/13031 Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc Reviewed-by: Patrick Rudolph Reviewed-by: Vladimir Serbinenko --- src/northbridge/intel/pineview/ram_calc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/northbridge/intel/pineview/ram_calc.c b/src/northbridge/intel/pineview/ram_calc.c index c273071182..af1ca72dba 100644 --- a/src/northbridge/intel/pineview/ram_calc.c +++ b/src/northbridge/intel/pineview/ram_calc.c @@ -42,9 +42,6 @@ u8 decode_pciebar(u32 *const base, u32 *const len) {0, 0}, }; - if (!dev) - return 0; - pciexbar_reg = pci_read_config32(dev, PCIEXBAR); // MMCFG not supported or not enabled.