From: Simon Glass Date: Fri, 27 Nov 2015 02:51:21 +0000 (-0700) Subject: dm: pci: Add a comment about how to find struct pci_controller X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=54fe7b1c12a4e0005337b2dccc090c8917d8315d;p=u-boot.git dm: pci: Add a comment about how to find struct pci_controller With driver mode, struct pci_controller is stored as uclass-private data. Add a comment to that effect. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- diff --git a/include/pci.h b/include/pci.h index 9c1948226f..c4f657784b 100644 --- a/include/pci.h +++ b/include/pci.h @@ -537,6 +537,8 @@ extern void pci_cfgfunc_config_device(struct pci_controller* hose, pci_dev_t dev /* * Structure of a PCI controller (host bridge) + * + * With driver model this is dev_get_uclass_priv(bus) */ struct pci_controller { #ifdef CONFIG_DM_PCI