From 91f2f03759a0b558be52a98037beeeb2812c93ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Sat, 28 Sep 2019 13:47:58 +0300 Subject: [PATCH] intel/fsp_baytrail: Drop unnecessary lookup for PCI 0:0.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It is safe to assume this to be copy-paste from eg. i945 where registers of said PCI device were read. Change-Id: I387b7fd6caf317543a6438f973d9e1d96e418de3 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/35668 Reviewed-by: Furquan Shaikh Tested-by: build bot (Jenkins) --- src/soc/intel/fsp_baytrail/northcluster.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/soc/intel/fsp_baytrail/northcluster.c b/src/soc/intel/fsp_baytrail/northcluster.c index 416746d79e..797039a27e 100644 --- a/src/soc/intel/fsp_baytrail/northcluster.c +++ b/src/soc/intel/fsp_baytrail/northcluster.c @@ -87,15 +87,10 @@ uint32_t nc_read_top_of_low_memory(void) static int get_pcie_bar(u32 *base) { - struct device *dev; u32 pciexbar_reg; *base = 0; - dev = pcidev_on_root(0, 0); - if (!dev) - return 0; - pciexbar_reg = iosf_bunit_read(BUNIT_MMCONF_REG); if (!(pciexbar_reg & (1 << 0)))