PCI: pciehp: remove pci_dev field
Since we have a pointer to pcie_device in struct controller, we don't need a pointer to pci_dev. 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
6aaa6d06f5
commit
385e24917e
@ -124,10 +124,10 @@ static int init_slot(struct controller *ctrl)
|
||||
snprintf(name, SLOT_NAME_SIZE, "%u", slot->number);
|
||||
|
||||
ctrl_dbg(ctrl, "Registering domain:bus:dev=%04x:%02x:00 sun=%x\n",
|
||||
pci_domain_nr(ctrl->pci_dev->subordinate),
|
||||
ctrl->pci_dev->subordinate->number, slot->number);
|
||||
pci_domain_nr(ctrl->pcie->port->subordinate),
|
||||
ctrl->pcie->port->subordinate->number, slot->number);
|
||||
retval = pci_hp_register(hotplug,
|
||||
ctrl->pci_dev->subordinate, 0, name);
|
||||
ctrl->pcie->port->subordinate, 0, name);
|
||||
if (retval) {
|
||||
ctrl_err(ctrl,
|
||||
"pci_hp_register failed with error %d\n", retval);
|
||||
|
Reference in New Issue
Block a user