mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-30 16:40:44 +09:00
pci: use __weak
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
This commit is contained in:
parent
3c6928fd7b
commit
7b19fd6d9f
@ -572,7 +572,7 @@ const char * pci_class_str(u8 class)
|
|||||||
}
|
}
|
||||||
#endif /* CONFIG_CMD_PCI || CONFIG_PCI_SCAN_SHOW */
|
#endif /* CONFIG_CMD_PCI || CONFIG_PCI_SCAN_SHOW */
|
||||||
|
|
||||||
int __pci_skip_dev(struct pci_controller *hose, pci_dev_t dev)
|
__weak int pci_skip_dev(struct pci_controller *hose, pci_dev_t dev)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Check if pci device should be skipped in configuration
|
* Check if pci device should be skipped in configuration
|
||||||
@ -591,19 +591,15 @@ int __pci_skip_dev(struct pci_controller *hose, pci_dev_t dev)
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
int pci_skip_dev(struct pci_controller *hose, pci_dev_t dev)
|
|
||||||
__attribute__((weak, alias("__pci_skip_dev")));
|
|
||||||
|
|
||||||
#ifdef CONFIG_PCI_SCAN_SHOW
|
#ifdef CONFIG_PCI_SCAN_SHOW
|
||||||
int __pci_print_dev(struct pci_controller *hose, pci_dev_t dev)
|
__weak int pci_print_dev(struct pci_controller *hose, pci_dev_t dev)
|
||||||
{
|
{
|
||||||
if (dev == PCI_BDF(hose->first_busno, 0, 0))
|
if (dev == PCI_BDF(hose->first_busno, 0, 0))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
int pci_print_dev(struct pci_controller *hose, pci_dev_t dev)
|
|
||||||
__attribute__((weak, alias("__pci_print_dev")));
|
|
||||||
#endif /* CONFIG_PCI_SCAN_SHOW */
|
#endif /* CONFIG_PCI_SCAN_SHOW */
|
||||||
|
|
||||||
int pci_hose_scan_bus(struct pci_controller *hose, int bus)
|
int pci_hose_scan_bus(struct pci_controller *hose, int bus)
|
||||||
|
Loading…
Reference in New Issue
Block a user