diff options
author | Sebastian Ott <sebott@linux.vnet.ibm.com> | 2013-08-29 13:33:16 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-08-30 02:57:07 -0400 |
commit | 67f43f38eeb34da43b624a29d57b703f4c4844b4 (patch) | |
tree | f38156d87f7bce9e1b32cb8214de0d24447e2dd6 /arch/s390/include/asm/pci.h | |
parent | 0944fe3f4a323f436180d39402cae7f9c46ead17 (diff) |
s390/pci/hotplug: convert to be builtin only
Convert s390' pci hotplug to be builtin only, with no module option.
Suggested-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/pci.h')
-rw-r--r-- | arch/s390/include/asm/pci.h | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/arch/s390/include/asm/pci.h b/arch/s390/include/asm/pci.h index d0872769d44e..64081f85ffdb 100644 --- a/arch/s390/include/asm/pci.h +++ b/arch/s390/include/asm/pci.h | |||
@@ -116,11 +116,6 @@ struct zpci_dev { | |||
116 | struct dentry *debugfs_perf; | 116 | struct dentry *debugfs_perf; |
117 | }; | 117 | }; |
118 | 118 | ||
119 | struct pci_hp_callback_ops { | ||
120 | int (*create_slot) (struct zpci_dev *zdev); | ||
121 | void (*remove_slot) (struct zpci_dev *zdev); | ||
122 | }; | ||
123 | |||
124 | static inline bool zdev_enabled(struct zpci_dev *zdev) | 119 | static inline bool zdev_enabled(struct zpci_dev *zdev) |
125 | { | 120 | { |
126 | return (zdev->fh & (1UL << 31)) ? true : false; | 121 | return (zdev->fh & (1UL << 31)) ? true : false; |
@@ -154,6 +149,17 @@ static inline void zpci_event_error(void *e) {} | |||
154 | static inline void zpci_event_availability(void *e) {} | 149 | static inline void zpci_event_availability(void *e) {} |
155 | #endif /* CONFIG_PCI */ | 150 | #endif /* CONFIG_PCI */ |
156 | 151 | ||
152 | #ifdef CONFIG_HOTPLUG_PCI_S390 | ||
153 | int zpci_init_slot(struct zpci_dev *); | ||
154 | void zpci_exit_slot(struct zpci_dev *); | ||
155 | #else /* CONFIG_HOTPLUG_PCI_S390 */ | ||
156 | static inline int zpci_init_slot(struct zpci_dev *zdev) | ||
157 | { | ||
158 | return 0; | ||
159 | } | ||
160 | static inline void zpci_exit_slot(struct zpci_dev *zdev) {} | ||
161 | #endif /* CONFIG_HOTPLUG_PCI_S390 */ | ||
162 | |||
157 | /* Helpers */ | 163 | /* Helpers */ |
158 | struct zpci_dev *get_zdev(struct pci_dev *); | 164 | struct zpci_dev *get_zdev(struct pci_dev *); |
159 | struct zpci_dev *get_zdev_by_fid(u32); | 165 | struct zpci_dev *get_zdev_by_fid(u32); |
@@ -167,14 +173,6 @@ void zpci_sysfs_remove_device(struct device *); | |||
167 | int zpci_dma_init(void); | 173 | int zpci_dma_init(void); |
168 | void zpci_dma_exit(void); | 174 | void zpci_dma_exit(void); |
169 | 175 | ||
170 | /* Hotplug */ | ||
171 | extern struct mutex zpci_list_lock; | ||
172 | extern struct list_head zpci_list; | ||
173 | extern unsigned int s390_pci_probe; | ||
174 | |||
175 | void zpci_register_hp_ops(struct pci_hp_callback_ops *); | ||
176 | void zpci_deregister_hp_ops(void); | ||
177 | |||
178 | /* FMB */ | 176 | /* FMB */ |
179 | int zpci_fmb_enable_device(struct zpci_dev *); | 177 | int zpci_fmb_enable_device(struct zpci_dev *); |
180 | int zpci_fmb_disable_device(struct zpci_dev *); | 178 | int zpci_fmb_disable_device(struct zpci_dev *); |