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 <damien@zamaudio.com>
Reviewed-on: https://review.coreboot.org/13031
Tested-by: build bot (Jenkins)
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-by: Vladimir Serbinenko <phcoder@gmail.com>
This commit is contained in:
Damien Zammit 2016-01-18 16:29:42 +11:00 committed by Vladimir Serbinenko
parent a67526e61d
commit f564606170
1 changed files with 0 additions and 3 deletions

View File

@ -42,9 +42,6 @@ u8 decode_pciebar(u32 *const base, u32 *const len)
{0, 0}, {0, 0},
}; };
if (!dev)
return 0;
pciexbar_reg = pci_read_config32(dev, PCIEXBAR); pciexbar_reg = pci_read_config32(dev, PCIEXBAR);
// MMCFG not supported or not enabled. // MMCFG not supported or not enabled.