Add a new internal function, device_ofdata_to_platdata() to handle
allocating private space associated with each device and reading the
platform data from the device tree.

Call this new function from device_probe().

Signed-off-by: Simon Glass <[email protected]>
---

 drivers/core/device.c        | 29 +++++++++++++++++++++++++++--
 include/dm/device-internal.h | 16 ++++++++++++++++
 2 files changed, 43 insertions(+), 2 deletions(-)

Applied to u-boot-dm, thanks!

Reply via email to