summaryrefslogtreecommitdiff
path: root/src/device/oprom/realmode/x86.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/device/oprom/realmode/x86.c')
-rw-r--r--src/device/oprom/realmode/x86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device/oprom/realmode/x86.c b/src/device/oprom/realmode/x86.c
index 367614db2b..c3adf401f4 100644
--- a/src/device/oprom/realmode/x86.c
+++ b/src/device/oprom/realmode/x86.c
@@ -415,7 +415,7 @@ void vbe_textmode_console(void)
void run_bios(struct device *dev, unsigned long addr)
{
- u32 num_dev = (dev->bus->secondary << 8) | dev->path.pci.devfn;
+ u32 num_dev = (dev->upstream->secondary << 8) | dev->path.pci.devfn;
/* Setting up required hardware.
* Removing this will cause random illegal instruction exceptions