mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
powerpc: Create pci_controller_ops.enable_device_hook and shim
Add pci_controller_ops.enable_device_hook, shadowing ppc_md.pcibios_enable_device_hook. Add a shim, and changes the callsites to use the shim. Signed-off-by: Daniel Axtens <dja@axtens.net> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
ff9df8c87d
commit
b31e79f8d9
2 changed files with 17 additions and 3 deletions
|
@ -1448,9 +1448,8 @@ EXPORT_SYMBOL_GPL(pcibios_finish_adding_to_bus);
|
|||
|
||||
int pcibios_enable_device(struct pci_dev *dev, int mask)
|
||||
{
|
||||
if (ppc_md.pcibios_enable_device_hook)
|
||||
if (!ppc_md.pcibios_enable_device_hook(dev))
|
||||
return -EINVAL;
|
||||
if (!pcibios_enable_device_hook(dev))
|
||||
return -EINVAL;
|
||||
|
||||
return pci_enable_resources(dev, mask);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue