PCI: Add a generic weak pcibios_align_resource()
Multiple architectures define this as a trivial function, and I'm adding another one as part of the RISC-V port. Add a __weak version of pcibios_align_resource() and delete the now-obselete ones in a handful of ports. The only functional change should be that a handful of ports used to export pcibios_fixup_bus(). Only some architectures export this, so I just dropped it. Signed-off-by:Palmer Dabbelt <palmer@dabbelt.com> Signed-off-by:
Bjorn Helgaas <bhelgaas@google.com>
Showing
- arch/arc/kernel/pcibios.c 0 additions, 9 deletionsarch/arc/kernel/pcibios.c
- arch/arm64/kernel/pci.c 0 additions, 9 deletionsarch/arm64/kernel/pci.c
- arch/ia64/pci/pci.c 0 additions, 7 deletionsarch/ia64/pci/pci.c
- arch/microblaze/pci/pci-common.c 0 additions, 7 deletionsarch/microblaze/pci/pci-common.c
- arch/sparc/kernel/leon_pci.c 0 additions, 6 deletionsarch/sparc/kernel/leon_pci.c
- arch/sparc/kernel/pci.c 0 additions, 6 deletionsarch/sparc/kernel/pci.c
- arch/sparc/kernel/pcic.c 0 additions, 6 deletionsarch/sparc/kernel/pcic.c
- arch/tile/kernel/pci.c 0 additions, 10 deletionsarch/tile/kernel/pci.c
- arch/tile/kernel/pci_gx.c 0 additions, 9 deletionsarch/tile/kernel/pci_gx.c
- drivers/pci/setup-res.c 13 additions, 0 deletionsdrivers/pci/setup-res.c
Loading
Please register or sign in to comment