dm: pci: Optimize pci_uclass_post_bind()
authorBin Meng <bmeng.cn@gmail.com>
Mon, 24 Aug 2015 08:14:01 +0000 (01:14 -0700)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 09:29:48 +0000 (11:29 +0200)
commit01ec422665b32191b940a355ebc6bb107fa9e8e7
tree0c8856f1a069a643f781080a03fcaff5abb7fb02
parent5ea96614e717adbd5413f69070075e86e1b197ee
dm: pci: Optimize pci_uclass_post_bind()

If there is no pci device listed in the device tree,
don't bother scanning the device tree.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
drivers/pci/pci-uclass.c