pci: Print a warning if the bus is accessed before probing
authorSimon Glass <sjg@chromium.org>
Mon, 30 Dec 2019 04:19:14 +0000 (21:19 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 7 Jan 2020 23:02:38 +0000 (16:02 -0700)
commit4886287ee4f942aeee2ae0d50281ce21e8c43cf5
tree744bacc35e9f321448190a3e50a0b592699e6c59
parent3d9acea3d9ae45037ff2fd1e4c2f877f0466ce6a
pci: Print a warning if the bus is accessed before probing

It is not possible to access a device on a PCI bus that has not yet been
probed, since the bus number is not known. Add a warning to catch this
error.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/pci/pci-uclass.c