dm: core: Move ofdata_to_platdata() call earlier 38/268138/1
authorSimon Glass <sjg@chromium.org>
Mon, 30 Dec 2019 04:19:17 +0000 (21:19 -0700)
committerJaehoon Chung <jh80.chung@samsung.com>
Thu, 16 Dec 2021 11:38:20 +0000 (20:38 +0900)
commitd97c0dfad60fc24c83a7f5f60776f4ed818e6ca8
treeb932c0ff332e2e219d848dbabb5aa05bc34a7be0
parent24c3fded8ab0b67cb6be63d07e1fd9824a5b526e
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.

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