summaryrefslogtreecommitdiff
path: root/src/northbridge/intel
diff options
context:
space:
mode:
Diffstat (limited to 'src/northbridge/intel')
-rw-r--r--src/northbridge/intel/haswell/pcie.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/northbridge/intel/haswell/pcie.c b/src/northbridge/intel/haswell/pcie.c
index ac6d4ca7c0..d93639932f 100644
--- a/src/northbridge/intel/haswell/pcie.c
+++ b/src/northbridge/intel/haswell/pcie.c
@@ -50,7 +50,7 @@ static void peg_enable(struct device *dev)
{
const struct northbridge_intel_haswell_config *config = config_of(dev);
- const uint8_t func = PCI_FUNC(PCI_BDF(dev));
+ const uint8_t func = PCI_FUNC(dev->path.pci.devfn);
assert(func < ARRAY_SIZE(config->peg_cfg));