dm: core: Allocate parent data separate from probing parent
authorSimon Glass <sjg@chromium.org>
Mon, 30 Dec 2019 04:19:18 +0000 (21:19 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 7 Jan 2020 23:02:38 +0000 (16:02 -0700)
commit82de42fa14682d408da935adfb0f935354c5008f
tree4c351dbb9bc85586f1277fe7d727172c22a143e1
parent29f7d05a347ab7a42577c67fdfb787ef91537302
dm: core: Allocate parent data separate from probing parent

At present the parent is probed before the child's ofdata_to_platdata()
method is called. Adjust the logic slightly so that probing parents is
not done until afterwards.

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