PCI: generic: Add pci_host_common_probe(), based on gen_pci_probe()
authorDavid Daney <david.daney@cavium.com>
Fri, 11 Mar 2016 21:25:13 +0000 (15:25 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 11 Mar 2016 21:48:16 +0000 (15:48 -0600)
commitd51b371087d7198c733d2ef3c4db8165aee4de4e
treee2373aa3244e803008d92705f287ca90bbc78953
parent7149b9fdaa5e160a7ee2af9014d9af77e87d9689
PCI: generic: Add pci_host_common_probe(), based on gen_pci_probe()

Factor gen_pci_probe(), moving most of it into pci_host_common_probe()
where it can be shared with other drivers that have slightly different
config accessors.  No functional change intended.

[bhelgaas: split into separate patch, changelog]
Signed-off-by: David Daney <david.daney@cavium.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Will Deacon <will.deacon@arm.com>
drivers/pci/host/pci-host-generic.c