diff options
author | Daniel Axtens <dja@axtens.net> | 2015-03-31 16:00:45 +1100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-04-11 20:49:13 +1000 |
commit | b31e79f8d92ca115a935e37cfd4da74048739689 (patch) | |
tree | 15152735740773a6145bc929bd291e3a456a55df /arch/powerpc/kernel/pci-common.c | |
parent | ff9df8c87d6807e90c5c3b0e1fd1649d09fd3bcd (diff) | |
download | linux-stable-b31e79f8d92ca115a935e37cfd4da74048739689.tar.gz linux-stable-b31e79f8d92ca115a935e37cfd4da74048739689.tar.bz2 linux-stable-b31e79f8d92ca115a935e37cfd4da74048739689.zip |
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>
Diffstat (limited to 'arch/powerpc/kernel/pci-common.c')
-rw-r--r-- | arch/powerpc/kernel/pci-common.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c index b0de23c89ca5..8639e9cd65d5 100644 --- a/arch/powerpc/kernel/pci-common.c +++ b/arch/powerpc/kernel/pci-common.c @@ -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); } |