PCI: Add a generic weak pcibios_align_resource()
authorPalmer Dabbelt <palmer@dabbelt.com>
Wed, 2 Aug 2017 19:44:50 +0000 (14:44 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 2 Aug 2017 19:53:16 +0000 (14:53 -0500)
commitecf677c8dcaa7bf13eee31b4d9e4639d559984ad
treef831c3251c69bd7b0cb49fecc549ab56846927fd
parentbccf90d6e063d278b9ddc78dd266d0adef29886c
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>
arch/arc/kernel/pcibios.c
arch/arm64/kernel/pci.c
arch/ia64/pci/pci.c
arch/microblaze/pci/pci-common.c
arch/sparc/kernel/leon_pci.c
arch/sparc/kernel/pci.c
arch/sparc/kernel/pcic.c
arch/tile/kernel/pci.c
arch/tile/kernel/pci_gx.c
drivers/pci/setup-res.c