Skip to content
Snippets Groups Projects
Commit d7482ca4 authored by Minghuan Lian's avatar Minghuan Lian Committed by York Sun
Browse files

dm: pci: return the real controller in pci_bus_to_hose()


for the legacy PCI driver, the function pci_bus_to_hose() returns
the real PCIe controller. To keep consistency, this function is
changed to return the PCIe controller pointer of the root bus
instead of the current PCIe bus.

Signed-off-by: default avatarMinghuan Lian <Minghuan.Lian@nxp.com>
Signed-off-by: default avatarHou Zhiqiang <Zhiqiang.Hou@nxp.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
Reviewed-by: default avatarYork Sun <york.sun@nxp.com>
parent 1e960e15
Branches
Tags
No related merge requests found
...@@ -49,5 +49,5 @@ struct pci_controller *pci_bus_to_hose(int busnum) ...@@ -49,5 +49,5 @@ struct pci_controller *pci_bus_to_hose(int busnum)
return NULL; return NULL;
} }
return dev_get_uclass_priv(bus); return dev_get_uclass_priv(pci_get_controller(bus));
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment