Skip to content
Snippets Groups Projects
Commit f698baa9 authored by Bin Meng's avatar Bin Meng
Browse files

pci: Add board_ prefix to should_load_oprom() and make it weak


For consistency with board_should_run_oprom(), do the same to
should_load_oprom(). Board support codes can provide this one
to override the default weak one.

Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent c0aea6ba
No related branches found
No related tags found
No related merge requests found
...@@ -39,7 +39,7 @@ __weak bool board_should_run_oprom(struct udevice *dev) ...@@ -39,7 +39,7 @@ __weak bool board_should_run_oprom(struct udevice *dev)
return true; return true;
} }
static bool should_load_oprom(struct udevice *dev) __weak bool board_should_load_oprom(struct udevice *dev)
{ {
return true; return true;
} }
...@@ -273,7 +273,7 @@ int dm_pci_run_vga_bios(struct udevice *dev, int (*int15_handler)(void), ...@@ -273,7 +273,7 @@ int dm_pci_run_vga_bios(struct udevice *dev, int (*int15_handler)(void),
return -ENODEV; return -ENODEV;
} }
if (!should_load_oprom(dev)) if (!board_should_load_oprom(dev))
return -ENXIO; return -ENXIO;
ret = pci_rom_probe(dev, &rom); ret = pci_rom_probe(dev, &rom);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment