diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2011-07-09 14:47:47 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2011-07-10 15:36:04 -0400 |
commit | fce9189a6b19894eba0282c90fd0c1bfbcc12362 (patch) | |
tree | d4ad3de8efcc71a96d9113f79122162209cf703d /src/optionroms.c | |
parent | 95b2e0c530c784251f4f4493dfffe947a6036c92 (diff) | |
download | seabios-fce9189a6b19894eba0282c90fd0c1bfbcc12362.tar.gz |
Push use of 'struct pci_device' to bootprio_find_pci_rom().
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/optionroms.c')
-rw-r--r-- | src/optionroms.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/optionroms.c b/src/optionroms.c index 3d1a1e41..be02f2aa 100644 --- a/src/optionroms.c +++ b/src/optionroms.c @@ -230,7 +230,7 @@ getRomPriority(u64 *sources, struct rom_header *rom, int instance) if (!source) return -1; if (source & RS_PCIROM) - return bootprio_find_pci_rom(source, instance); + return bootprio_find_pci_rom((void*)(u32)source, instance); return bootprio_find_named_rom(romfile_name(source), instance); } @@ -379,7 +379,7 @@ init_pcirom(struct pci_device *pci, int isvga, u64 *sources) if (! rom) // No ROM present. return -1; - setRomSource(sources, rom, RS_PCIROM | bdf); + setRomSource(sources, rom, RS_PCIROM | (u32)pci); return init_optionrom(rom, bdf, isvga); } |