dm: pci: Add a driver-model version of pci_find_class()
authorSimon Glass <sjg@chromium.org>
Sun, 29 Nov 2015 20:17:52 +0000 (13:17 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 12 Jan 2016 17:19:09 +0000 (10:19 -0700)
commita0eb835635abe0952529e3eb5207a24ac36fa000
treeaac75f8b2e09e09890e6a74ef7f5c3078b1d689f
parent9fbdb94667b7316ef2a48fce325ae2da147d7d66
dm: pci: Add a driver-model version of pci_find_class()

Add a function which scans the driver model device information rather
than scanning the PCI bus again.

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/pci-uclass.c
include/pci.h