diff options
author | Palmer Dabbelt <palmer@dabbelt.com> | 2017-06-23 21:50:42 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2017-08-02 15:43:38 -0400 |
commit | bccf90d6e063d278b9ddc78dd266d0adef29886c (patch) | |
tree | 08579c44a77ee7c747ccb0802d2628034868665f /arch/tile | |
parent | 16f73eb02d7e1765ccab3d2018e0bd98eb93d973 (diff) |
PCI: Add a generic weak pcibios_fixup_bus()
Multiple architectures define this as an empty function, and I'm adding
another one as part of the RISC-V port. Add a __weak version of
pcibios_fixup_bus() and delete the now-obselete ones in a handful of
ports.
The only functional change should be that microblaze used to export
pcibios_fixup_bus(). None of the other architectures exports this, so I
just dropped it.
Signed-off-by: Palmer Dabbelt <palmer@dabbelt.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'arch/tile')
-rw-r--r-- | arch/tile/kernel/pci.c | 8 | ||||
-rw-r--r-- | arch/tile/kernel/pci_gx.c | 5 |
2 files changed, 0 insertions, 13 deletions
diff --git a/arch/tile/kernel/pci.c b/arch/tile/kernel/pci.c index bc6656b5708b..3113d4d5c329 100644 --- a/arch/tile/kernel/pci.c +++ b/arch/tile/kernel/pci.c | |||
@@ -369,14 +369,6 @@ int __init pcibios_init(void) | |||
369 | } | 369 | } |
370 | subsys_initcall(pcibios_init); | 370 | subsys_initcall(pcibios_init); |
371 | 371 | ||
372 | /* | ||
373 | * No bus fixups needed. | ||
374 | */ | ||
375 | void pcibios_fixup_bus(struct pci_bus *bus) | ||
376 | { | ||
377 | /* Nothing needs to be done. */ | ||
378 | } | ||
379 | |||
380 | void pcibios_set_master(struct pci_dev *dev) | 372 | void pcibios_set_master(struct pci_dev *dev) |
381 | { | 373 | { |
382 | /* No special bus mastering setup handling. */ | 374 | /* No special bus mastering setup handling. */ |
diff --git a/arch/tile/kernel/pci_gx.c b/arch/tile/kernel/pci_gx.c index b554a68eea1b..b89172b592cc 100644 --- a/arch/tile/kernel/pci_gx.c +++ b/arch/tile/kernel/pci_gx.c | |||
@@ -1038,11 +1038,6 @@ alloc_mem_map_failed: | |||
1038 | } | 1038 | } |
1039 | subsys_initcall(pcibios_init); | 1039 | subsys_initcall(pcibios_init); |
1040 | 1040 | ||
1041 | /* No bus fixups needed. */ | ||
1042 | void pcibios_fixup_bus(struct pci_bus *bus) | ||
1043 | { | ||
1044 | } | ||
1045 | |||
1046 | /* Process any "pci=" kernel boot arguments. */ | 1041 | /* Process any "pci=" kernel boot arguments. */ |
1047 | char *__init pcibios_setup(char *str) | 1042 | char *__init pcibios_setup(char *str) |
1048 | { | 1043 | { |