PCI: pciehp: remove hp_slot field
The hp_slot field is to identify the slot under the same controller. But, since PCIe downstream port has only one slot at most, it is meaningless and we don't need it. Acked-by: Alex Chiang <achiang@hp.com> Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:
committed by
Jesse Barnes
parent
d689f7eb36
commit
0e3631593c
@@ -210,8 +210,8 @@ static int board_added(struct slot *p_slot)
|
||||
struct controller *ctrl = p_slot->ctrl;
|
||||
struct pci_bus *parent = ctrl->pci_dev->subordinate;
|
||||
|
||||
ctrl_dbg(ctrl, "%s: slot device, slot offset, hp slot = 0, %d, %d\n",
|
||||
__func__, ctrl->slot_device_offset, p_slot->hp_slot);
|
||||
ctrl_dbg(ctrl, "%s: slot device, slot offset = 0, %d\n",
|
||||
__func__, ctrl->slot_device_offset);
|
||||
|
||||
if (POWER_CTRL(ctrl)) {
|
||||
/* Power on slot */
|
||||
@@ -268,8 +268,6 @@ static int remove_board(struct slot *p_slot)
|
||||
if (retval)
|
||||
return retval;
|
||||
|
||||
ctrl_dbg(ctrl, "%s: hp_slot = %d\n", __func__, p_slot->hp_slot);
|
||||
|
||||
if (POWER_CTRL(ctrl)) {
|
||||
/* power off slot */
|
||||
retval = p_slot->hpc_ops->power_off_slot(p_slot);
|
||||
|
||||
Reference in New Issue
Block a user