dm: core: Move ofdata_to_platdata() call earlier
authorSimon Glass <sjg@chromium.org>
Mon, 30 Dec 2019 04:19:17 +0000 (21:19 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 7 Jan 2020 23:02:38 +0000 (16:02 -0700)
commit29f7d05a347ab7a42577c67fdfb787ef91537302
tree96fa4d0d718d722e9848f5104d9a19fa299fa4fe
parenta41e6daf0555b2461b3a3ae457bf9b9626e2d855
dm: core: Move ofdata_to_platdata() call earlier

This method is supposed to extract platform data from the device tree. It
should be done before the device itself is probed. Move it earlier in the
device_probe() function.

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