mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
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: Minghuan Lian <Minghuan.Lian@nxp.com> Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: York Sun <york.sun@nxp.com>
This commit is contained in:
parent
1e960e15a5
commit
d7482ca426
1 changed files with 1 additions and 1 deletions
|
@ -49,5 +49,5 @@ struct pci_controller *pci_bus_to_hose(int busnum)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
return dev_get_uclass_priv(bus);
|
||||
return dev_get_uclass_priv(pci_get_controller(bus));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue