PCI: pciehp: remove number field
Since slot_cap field in struct controller contains physical slot number informationq, we don't need number field in struct slot. 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
82a9e79ef1
commit
07a09694de
@@ -901,7 +901,6 @@ static int pcie_init_slot(struct controller *ctrl)
|
||||
return -ENOMEM;
|
||||
|
||||
slot->ctrl = ctrl;
|
||||
slot->number = PSN(ctrl);
|
||||
mutex_init(&slot->lock);
|
||||
INIT_DELAYED_WORK(&slot->work, pciehp_queue_pushbutton_work);
|
||||
ctrl->slot = slot;
|
||||
|
Reference in New Issue
Block a user