aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorDaniel Axtens <dja@axtens.net>2015-03-31 01:00:41 -0400
committerMichael Ellerman <mpe@ellerman.id.au>2015-04-11 06:49:10 -0400
commitc88c2a188905cb3077c3c38dc498e7e9f8eebeee (patch)
tree36fd0a09d7edba5db25562836d3228c6a823fd5f /arch/powerpc/include
parentba9c8f227358bcbc80fca19e7a339883cbc956a5 (diff)
powerpc: pcibios_enable_device_hook: return bool rather than int
pcibios_enable_device_hook returned an int. Every implementation returned either -EINVAL or 0. The return value wasn't propagated by the caller: any non-zero return value caused pcibios_enable_device to return -EINVAL itself. Therefore, make the hook return a bool. Signed-off-by: Daniel Axtens <dja@axtens.net> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r--arch/powerpc/include/asm/machdep.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/include/asm/machdep.h b/arch/powerpc/include/asm/machdep.h
index 098d51e924ea..e29f058c0903 100644
--- a/arch/powerpc/include/asm/machdep.h
+++ b/arch/powerpc/include/asm/machdep.h
@@ -237,9 +237,9 @@ struct machdep_calls {
237 /* Called for each PCI bus in the system when it's probed */ 237 /* Called for each PCI bus in the system when it's probed */
238 void (*pcibios_fixup_bus)(struct pci_bus *); 238 void (*pcibios_fixup_bus)(struct pci_bus *);
239 239
240 /* Called when pci_enable_device() is called. Returns 0 to 240 /* Called when pci_enable_device() is called. Returns true to
241 * allow assignment/enabling of the device. */ 241 * allow assignment/enabling of the device. */
242 int (*pcibios_enable_device_hook)(struct pci_dev *); 242 bool (*pcibios_enable_device_hook)(struct pci_dev *);
243 243
244 /* Called after scan and before resource survey */ 244 /* Called after scan and before resource survey */
245 void (*pcibios_fixup_phb)(struct pci_controller *hose); 245 void (*pcibios_fixup_phb)(struct pci_controller *hose);