summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-11-29 13:17:49 -0700
committerSimon Glass <sjg@chromium.org>2016-01-12 10:19:09 -0700
commit5e23b8b4a4a63178015432a94617d937d8eb42cd (patch)
tree1285b0a143961b630bb27338bbe8f8f84a59a23c /include
parentf3f1faefcc25c7cce2babe944aa39178b498cd7f (diff)
downloadu-boot-imx-5e23b8b4a4a63178015432a94617d937d8eb42cd.zip
u-boot-imx-5e23b8b4a4a63178015432a94617d937d8eb42cd.tar.gz
u-boot-imx-5e23b8b4a4a63178015432a94617d937d8eb42cd.tar.bz2
dm: pci: Use driver model PCI API in auto-config
At present we are using legacy functions even in the auto-configuration code used by driver model. Add a new pci_auto.c version which uses the correct API. Create a new pci_internal.h header to hold functions that are used within the PCI subsystem, but are not exported to other drivers. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/pci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/pci.h b/include/pci.h
index 5861976..182290c 100644
--- a/include/pci.h
+++ b/include/pci.h
@@ -995,7 +995,7 @@ int pci_find_device_id(struct pci_device_id *ids, int index,
* @bdf: PCI bus address to scan (PCI_BUS(bdf) is the bus number)
* @return 0 if OK, -ve on error
*/
-int dm_pci_hose_probe_bus(struct pci_controller *hose, pci_dev_t bdf);
+int dm_pci_hose_probe_bus(struct udevice *bus);
/**
* pci_bus_read_config() - Read a configuration value from a device