diff options
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/hotplug/pciehp_ctrl.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/drivers/pci/hotplug/pciehp_ctrl.c b/drivers/pci/hotplug/pciehp_ctrl.c index 56082842b265..b418e3b09aa4 100644 --- a/drivers/pci/hotplug/pciehp_ctrl.c +++ b/drivers/pci/hotplug/pciehp_ctrl.c | |||
@@ -582,24 +582,6 @@ int pciehp_disable_slot(struct slot *p_slot) | |||
582 | if (!p_slot->ctrl) | 582 | if (!p_slot->ctrl) |
583 | return 1; | 583 | return 1; |
584 | 584 | ||
585 | if (!HP_SUPR_RM(p_slot->ctrl)) { | ||
586 | pciehp_get_adapter_status(p_slot, &getstatus); | ||
587 | if (!getstatus) { | ||
588 | ctrl_info(ctrl, "No adapter on slot(%s)\n", | ||
589 | slot_name(p_slot)); | ||
590 | return -ENODEV; | ||
591 | } | ||
592 | } | ||
593 | |||
594 | if (MRL_SENS(p_slot->ctrl)) { | ||
595 | pciehp_get_latch_status(p_slot, &getstatus); | ||
596 | if (getstatus) { | ||
597 | ctrl_info(ctrl, "Latch open on slot(%s)\n", | ||
598 | slot_name(p_slot)); | ||
599 | return -ENODEV; | ||
600 | } | ||
601 | } | ||
602 | |||
603 | if (POWER_CTRL(p_slot->ctrl)) { | 585 | if (POWER_CTRL(p_slot->ctrl)) { |
604 | pciehp_get_power_status(p_slot, &getstatus); | 586 | pciehp_get_power_status(p_slot, &getstatus); |
605 | if (!getstatus) { | 587 | if (!getstatus) { |