diff options
Diffstat (limited to 'drivers/pci/hotplug/cpqphp.h')
-rw-r--r-- | drivers/pci/hotplug/cpqphp.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/drivers/pci/hotplug/cpqphp.h b/drivers/pci/hotplug/cpqphp.h index b1decfa88b7a..afaf8f69f73e 100644 --- a/drivers/pci/hotplug/cpqphp.h +++ b/drivers/pci/hotplug/cpqphp.h | |||
@@ -449,6 +449,11 @@ extern u8 cpqhp_disk_irq; | |||
449 | 449 | ||
450 | /* inline functions */ | 450 | /* inline functions */ |
451 | 451 | ||
452 | static inline char *slot_name(struct slot *slot) | ||
453 | { | ||
454 | return hotplug_slot_name(slot->hotplug_slot); | ||
455 | } | ||
456 | |||
452 | /* | 457 | /* |
453 | * return_resource | 458 | * return_resource |
454 | * | 459 | * |
@@ -696,14 +701,6 @@ static inline int get_presence_status(struct controller *ctrl, struct slot *slot | |||
696 | return presence_save; | 701 | return presence_save; |
697 | } | 702 | } |
698 | 703 | ||
699 | #define SLOT_NAME_SIZE 10 | ||
700 | |||
701 | static inline void make_slot_name(char *buffer, int buffer_size, struct slot *slot) | ||
702 | { | ||
703 | snprintf(buffer, buffer_size, "%d", slot->number); | ||
704 | } | ||
705 | |||
706 | |||
707 | static inline int wait_for_ctrl_irq(struct controller *ctrl) | 704 | static inline int wait_for_ctrl_irq(struct controller *ctrl) |
708 | { | 705 | { |
709 | DECLARE_WAITQUEUE(wait, current); | 706 | DECLARE_WAITQUEUE(wait, current); |