summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-07-24 14:30:29 +0300
committerPatrick Georgi <pgeorgi@google.com>2019-08-30 10:43:13 +0000
commit7f742241b8116c6c8db80eeefd4189eed4c59160 (patch)
tree0c26e06a28babb644e9649412b909aa9afbfa4b6
parentf672d50e2bad1d35e820ab32b76dbf95a7b90a35 (diff)
downloadcoreboot-7f742241b8116c6c8db80eeefd4189eed4c59160.tar.gz
coreboot-7f742241b8116c6c8db80eeefd4189eed4c59160.tar.bz2
coreboot-7f742241b8116c6c8db80eeefd4189eed4c59160.zip
soc/intel/fsp_broadwell_de: Fix use of config_of()
Change-Id: I96d423720fbe67c067373436ad250edf37939e99 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34547 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Werner Zeh <werner.zeh@siemens.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> (cherry picked from commit c9c80c69073bb2677b0b2e58b60fcf93822cb2c7) Reviewed-on: https://review.coreboot.org/c/coreboot/+/35045 Reviewed-by: Martin Roth <martinroth@google.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
-rw-r--r--src/soc/intel/fsp_broadwell_de/iou_complto.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/soc/intel/fsp_broadwell_de/iou_complto.c b/src/soc/intel/fsp_broadwell_de/iou_complto.c
index c50cbb43c15b..f998d9754705 100644
--- a/src/soc/intel/fsp_broadwell_de/iou_complto.c
+++ b/src/soc/intel/fsp_broadwell_de/iou_complto.c
@@ -17,12 +17,14 @@
#include <device/pci_ids.h>
#include <device/pci_ops.h>
#include <soc/intel/fsp_broadwell_de/chip.h>
+#include <soc/pci_devs.h>
#define DEVCTL2 0xb8
static void iou_init(struct device *dev)
{
- const config_t *config = config_of(dev);
+ /* Use config from device always present in static devicetree. */
+ const config_t *config = config_of_path(SOC_DEV_FUNC);
u16 devctl2;
/* pcie completion timeout