aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/pciehp.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/hotplug/pciehp.h')
-rw-r--r--drivers/pci/hotplug/pciehp.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/pci/hotplug/pciehp.h b/drivers/pci/hotplug/pciehp.h
index 4fb12fcda563..6a2f427768ca 100644
--- a/drivers/pci/hotplug/pciehp.h
+++ b/drivers/pci/hotplug/pciehp.h
@@ -50,7 +50,7 @@ extern int pciehp_force;
50#define info(format, arg...) printk(KERN_INFO "%s: " format, MY_NAME , ## arg) 50#define info(format, arg...) printk(KERN_INFO "%s: " format, MY_NAME , ## arg)
51#define warn(format, arg...) printk(KERN_WARNING "%s: " format, MY_NAME , ## arg) 51#define warn(format, arg...) printk(KERN_WARNING "%s: " format, MY_NAME , ## arg)
52 52
53 53#define SLOT_NAME_SIZE 10
54struct slot { 54struct slot {
55 struct slot *next; 55 struct slot *next;
56 u8 bus; 56 u8 bus;
@@ -63,6 +63,7 @@ struct slot {
63 struct hpc_ops *hpc_ops; 63 struct hpc_ops *hpc_ops;
64 struct hotplug_slot *hotplug_slot; 64 struct hotplug_slot *hotplug_slot;
65 struct list_head slot_list; 65 struct list_head slot_list;
66 char name[SLOT_NAME_SIZE];
66}; 67};
67 68
68struct event_info { 69struct event_info {
@@ -233,13 +234,6 @@ static inline int wait_for_ctrl_irq(struct controller *ctrl)
233 return retval; 234 return retval;
234} 235}
235 236
236#define SLOT_NAME_SIZE 10
237
238static inline void make_slot_name(char *buffer, int buffer_size, struct slot *slot)
239{
240 snprintf(buffer, buffer_size, "%04d_%04d", slot->bus, slot->number);
241}
242
243enum php_ctlr_type { 237enum php_ctlr_type {
244 PCI, 238 PCI,
245 ISA, 239 ISA,