aboutsummaryrefslogtreecommitdiff
path: root/drivers/pci
diff options
context:
space:
mode:
authorBin Meng2016-06-14 02:02:39 -0700
committerBin Meng2016-07-12 13:46:01 +0800
commitc0aea6ba8b008aa3e28d85d70f7fb11885d560e0 (patch)
treeeb5aab8426e8b29ac79829ab67a8e26c3fb19812 /drivers/pci
parentb45dd66225dfe60d692efde1e7bd36b5842434b7 (diff)
pci: Make load_oprom and run_oprom independent
At present should_load_oprom() calls board_should_run_oprom() to determine whether oprom should be loaded. But sometimes we just want to load oprom without running. Make them independent. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/pci_rom.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/pci/pci_rom.c b/drivers/pci/pci_rom.c
index 3ae9231b5f7..a168559b898 100644
--- a/drivers/pci/pci_rom.c
+++ b/drivers/pci/pci_rom.c
@@ -41,10 +41,7 @@ __weak bool board_should_run_oprom(struct udevice *dev)
static bool should_load_oprom(struct udevice *dev)
{
- if (board_should_run_oprom(dev))
- return 1;
-
- return 0;
+ return true;
}
__weak uint32_t board_map_oprom_vendev(uint32_t vendev)