dm: pci: Use driver model PCI API in auto-config
authorSimon Glass <sjg@chromium.org>
Sun, 29 Nov 2015 20:17:49 +0000 (13:17 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 12 Jan 2016 17:19:09 +0000 (10:19 -0700)
commit5e23b8b4a4a63178015432a94617d937d8eb42cd
tree1285b0a143961b630bb27338bbe8f8f84a59a23c
parentf3f1faefcc25c7cce2babe944aa39178b498cd7f
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>
drivers/pci/Makefile
drivers/pci/pci-uclass.c
drivers/pci/pci_auto.c [new file with mode: 0644]
drivers/pci/pci_auto_old.c
drivers/pci/pci_internal.h [new file with mode: 0644]
include/pci.h