x86: apl: Avoid accessing the PCI bus before it is probed
authorSimon Glass <sjg@chromium.org>
Mon, 30 Dec 2019 04:19:13 +0000 (21:19 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 7 Jan 2020 23:02:38 +0000 (16:02 -0700)
commit3d9acea3d9ae45037ff2fd1e4c2f877f0466ce6a
tree8abecc2f1eecb4f243d98f9455ddfdb643659528
parent1058eec0f4a34a28095276729d390885d468a44f
x86: apl: Avoid accessing the PCI bus before it is probed

The PCI bus is not actually probed by the time the ofdata_to_platdata()
method is called since that happens in the uclass's post_probe() method.
Update the PMC and P2SB drivers to access the bus in its probe() method.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/apollolake/p2sb.c
arch/x86/cpu/apollolake/pmc.c