[PATCH 16/26] dm: core: Split out alloc code into a new function

Simon Glass
2020-12-28T16:26:26Z

Add a new function to handle the allocation of private/platform data for
a device. This will make it easier to skip this feature when using the new
of-platdata.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

drivers/core/device.c | 89 +++++++++++++++++++++++++------------------
1 file changed, 52 insertions(+), 37 deletions(-)

Applied to u-boot-dm/next, thanks!