aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/shpchp.h
diff options
context:
space:
mode:
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>2006-02-21 18:45:42 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2006-03-23 17:35:13 -0500
commit68c0b671491088d79611fa965bbf94b3bc0024a4 (patch)
treed5e8ba499b378e53edc73b1470a988aefa0a0e0e /drivers/pci/hotplug/shpchp.h
parent09e1218eccf58f6174fa68360a7c8dcfe457fe9b (diff)
[PATCH] shpchp: Remove unused wait_for_ctrl_irq
The wait_for_ctrl_irq() function in SHPCHP driver is no longer needed. This patch removes that. This patch has no functional change. Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pci/hotplug/shpchp.h')
-rw-r--r--drivers/pci/hotplug/shpchp.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/drivers/pci/hotplug/shpchp.h b/drivers/pci/hotplug/shpchp.h
index ce792b3cf9d..6e1fb1bdc24 100644
--- a/drivers/pci/hotplug/shpchp.h
+++ b/drivers/pci/hotplug/shpchp.h
@@ -325,27 +325,6 @@ static inline struct slot *shpchp_find_slot (struct controller *ctrl, u8 device)
325 return NULL; 325 return NULL;
326} 326}
327 327
328static inline int wait_for_ctrl_irq (struct controller *ctrl)
329{
330 DECLARE_WAITQUEUE(wait, current);
331 int retval = 0;
332
333 add_wait_queue(&ctrl->queue, &wait);
334
335 if (!shpchp_poll_mode) {
336 /* Sleep for up to 1 second */
337 msleep_interruptible(1000);
338 } else {
339 /* Sleep for up to 2 seconds */
340 msleep_interruptible(2000);
341 }
342 remove_wait_queue(&ctrl->queue, &wait);
343 if (signal_pending(current))
344 retval = -EINTR;
345
346 return retval;
347}
348
349static inline void amd_pogo_errata_save_misc_reg(struct slot *p_slot) 328static inline void amd_pogo_errata_save_misc_reg(struct slot *p_slot)
350{ 329{
351 u32 pcix_misc2_temp; 330 u32 pcix_misc2_temp;