dm: pci: Fix pci_last_busno() to return the real last bus no
authorBin Meng <bmeng.cn@gmail.com>
Thu, 1 Oct 2015 07:36:01 +0000 (00:36 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 21 Oct 2015 13:46:25 +0000 (07:46 -0600)
commit069155cbb44c1e9e45676ac64e3c95f76a8d5820
tree4b65baa374c5bd285b4653deaf400e99aa017b2c
parentaf67e7ce237fa0956168efca7909458d4ea93d4b
dm: pci: Fix pci_last_busno() to return the real last bus no

Currently pci_last_busno() only checks the last bridge device
under the first UCLASS_PCI device. This is not the case when
there are multiple bridge devices.

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