x86: pcie: Fix array index for bus_segs
This seems like a typo since all other places accessing bus_segs in this context use i as the index. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
47c592cd32
commit
1c23a19c36
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ static inline void pcie_mm_conf(pcie_bdf_t bdf, unsigned int reg,
|
|||
PCIE_BDF_TO_FUNC(bdf));
|
||||
|
||||
volatile uint32_t *regs
|
||||
= (void *)&bus_segs[0].mmio[bdf << 4];
|
||||
= (void *)&bus_segs[i].mmio[bdf << 4];
|
||||
|
||||
if (write) {
|
||||
regs[reg] = *data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue