]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
pci: Make load_oprom and run_oprom independent
authorBin Meng <bmeng.cn@gmail.com>
Tue, 14 Jun 2016 09:02:39 +0000 (02:02 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 12 Jul 2016 05:46:01 +0000 (13:46 +0800)
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>
drivers/pci/pci_rom.c

index 3ae9231b5f7371a4f9dc9feeb5e0f603fcc1dfce..a168559b89887b715313880e240696cb06779669 100644 (file)
@@ -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)