commit | 68185b01e4a4ab734712925b1fa15d828f688818 | [log] [tgz] |
---|---|---|
author | Thierry Reding <treding@nvidia.com> | Wed Nov 12 18:26:48 2014 -0700 |
committer | Tom Rini <trini@ti.com> | Sun Nov 23 06:49:01 2014 -0500 |
tree | 86cbfb791811558f5834e5570dec666e9bc8fe29 | |
parent | 3e336c8decbe19cefac6a90d9f514127584d729d [diff] |
pci: Abort early if bus does not exist When listing the devices on a PCI bus, the current code will blindly try to access all devices. Internally this causes pci_bus_to_hose() to be repeatedly called and output an error message every time. Prevent this by calling pci_bus_to_hose() once and abort early if no bus was found. Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Simon Glass <sjg@chromium.org>