]> git.baikalelectronics.ru Git - kernel.git/commit
ARM/PCI: Move align_resource function pointer to pci_host_bridge structure
authorGabriele Paoloni <gabriele.paoloni@huawei.com>
Wed, 11 Nov 2015 01:12:25 +0000 (09:12 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 25 Nov 2015 19:23:38 +0000 (13:23 -0600)
commit3b6865ed56cdf9dfc547526aa1c9216e2aa95720
tree3f4fb05f3119cec239ba391cecf8ccd7a8b5df0a
parent4fac1158d4a819f9cb2f1fce5128826428ca1f73
ARM/PCI: Move align_resource function pointer to pci_host_bridge structure

Commit a01f0f256033 ("ARM/PCI: Replace pci_sys_data->align_resource with
global function pointer") introduced an ARM-specific align_resource()
function pointer.  This is not portable to other arches and doesn't work
for platforms with two different PCIe host bridge controllers.

Move the function pointer to the pci_host_bridge structure so each host
bridge driver can specify its own align_resource() function.

Signed-off-by: Gabriele Paoloni <gabriele.paoloni@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/kernel/bios32.c
drivers/pci/pci.h
include/linux/pci.h