|
@@ -582,24 +582,6 @@ int pciehp_disable_slot(struct slot *p_slot)
|
|
|
if (!p_slot->ctrl)
|
|
|
return 1;
|
|
|
|
|
|
- if (!HP_SUPR_RM(p_slot->ctrl)) {
|
|
|
- pciehp_get_adapter_status(p_slot, &getstatus);
|
|
|
- if (!getstatus) {
|
|
|
- ctrl_info(ctrl, "No adapter on slot(%s)\n",
|
|
|
- slot_name(p_slot));
|
|
|
- return -ENODEV;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- if (MRL_SENS(p_slot->ctrl)) {
|
|
|
- pciehp_get_latch_status(p_slot, &getstatus);
|
|
|
- if (getstatus) {
|
|
|
- ctrl_info(ctrl, "Latch open on slot(%s)\n",
|
|
|
- slot_name(p_slot));
|
|
|
- return -ENODEV;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
if (POWER_CTRL(p_slot->ctrl)) {
|
|
|
pciehp_get_power_status(p_slot, &getstatus);
|
|
|
if (!getstatus) {
|