diff options
| -rw-r--r-- | drivers/pci/hotplug/shpchp.h | 21 | ||||
| -rw-r--r-- | drivers/pci/hotplug/shpchp_ctrl.c | 2 |
2 files changed, 1 insertions, 22 deletions
diff --git a/drivers/pci/hotplug/shpchp.h b/drivers/pci/hotplug/shpchp.h index ce792b3cf9de..6e1fb1bdc243 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 | ||
| 328 | static 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 | |||
| 349 | static inline void amd_pogo_errata_save_misc_reg(struct slot *p_slot) | 328 | static inline void amd_pogo_errata_save_misc_reg(struct slot *p_slot) |
| 350 | { | 329 | { |
| 351 | u32 pcix_misc2_temp; | 330 | u32 pcix_misc2_temp; |
diff --git a/drivers/pci/hotplug/shpchp_ctrl.c b/drivers/pci/hotplug/shpchp_ctrl.c index 1a7003d4ba96..b709328a4145 100644 --- a/drivers/pci/hotplug/shpchp_ctrl.c +++ b/drivers/pci/hotplug/shpchp_ctrl.c | |||
| @@ -441,7 +441,7 @@ static int board_added(struct slot *p_slot) | |||
| 441 | } | 441 | } |
| 442 | 442 | ||
| 443 | /* Wait for ~1 second */ | 443 | /* Wait for ~1 second */ |
| 444 | wait_for_ctrl_irq (ctrl); | 444 | msleep(1000); |
| 445 | 445 | ||
| 446 | dbg("%s: slot status = %x\n", __FUNCTION__, p_slot->status); | 446 | dbg("%s: slot status = %x\n", __FUNCTION__, p_slot->status); |
| 447 | /* Check for a power fault */ | 447 | /* Check for a power fault */ |
