PCI: Add pcibios_bus_add_device() weak function
authorWei Yang <weiyang@linux.vnet.ibm.com>
Thu, 3 Mar 2016 23:53:04 +0000 (10:53 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 8 Mar 2016 22:58:14 +0000 (09:58 +1100)
commit7b77061f8d03cdaf71d91ea356835131d651b103
tree19c1bf91b380bb848c779ff6840d521ef67d06c1
parentc194f7ea7f68f2690533832ec22f0d7ed4f2d74d
PCI: Add pcibios_bus_add_device() weak function

This adds weak function pcibios_bus_add_device() for arch dependent
code could do proper setup. For example, powerpc could setup EEH
related resources for SRIOV VFs.

Signed-off-by: Wei Yang <weiyang@linux.vnet.ibm.com>
Reviewed-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/pci/bus.c
include/linux/pci.h