pci: Add board_ prefix to should_load_oprom() and make it weak
[oweals/u-boot.git] / drivers / pci / pci_rom.c
index a168559b89887b715313880e240696cb06779669..399055b07813da939d3ef1230b38d0fc70ed523a 100644 (file)
@@ -39,7 +39,7 @@ __weak bool board_should_run_oprom(struct udevice *dev)
        return true;
 }
 
-static bool should_load_oprom(struct udevice *dev)
+__weak bool board_should_load_oprom(struct udevice *dev)
 {
        return true;
 }
@@ -273,7 +273,7 @@ int dm_pci_run_vga_bios(struct udevice *dev, int (*int15_handler)(void),
                return -ENODEV;
        }
 
-       if (!should_load_oprom(dev))
+       if (!board_should_load_oprom(dev))
                return -ENXIO;
 
        ret = pci_rom_probe(dev, &rom);