diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2013-04-15 16:44:18 (GMT) |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2013-04-15 16:44:18 (GMT) |
commit | c3139ba212ddc240656f4bcfc7c946418cd83e19 (patch) | |
tree | a5aa9746a5f646ed25ea426173f1b06269dbde85 /drivers/pci/hotplug/cpci_hotplug.h | |
parent | 9738abedd6721926dfb25fe6912be207b7168d03 (diff) | |
download | linux-fsl-qoriq-c3139ba212ddc240656f4bcfc7c946418cd83e19.tar.xz |
PCI: Move cpci_hotplug_init() proto to header file
cpci_hotplug_init() and cpci_hotplug_exit() are defined in
cpci_hotplug_core.c but had extern declarations in pci_hotplug_core.c.
This puts the declarations in a header file included both places so
the compiler can help keep everything consistent.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/hotplug/cpci_hotplug.h')
-rw-r--r-- | drivers/pci/hotplug/cpci_hotplug.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/pci/hotplug/cpci_hotplug.h b/drivers/pci/hotplug/cpci_hotplug.h index 9fff878..3ae19f7 100644 --- a/drivers/pci/hotplug/cpci_hotplug.h +++ b/drivers/pci/hotplug/cpci_hotplug.h @@ -99,4 +99,12 @@ extern int cpci_led_off(struct slot * slot); extern int cpci_configure_slot(struct slot *slot); extern int cpci_unconfigure_slot(struct slot *slot); +#ifdef CONFIG_HOTPLUG_PCI_CPCI +int cpci_hotplug_init(int debug); +void cpci_hotplug_exit(void); +#else +static inline int cpci_hotplug_init(int debug) { return 0; } +static inline void cpci_hotplug_exit(void) { } +#endif + #endif /* _CPCI_HOTPLUG_H */ |