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 <s...@chromium.org> --- drivers/core/device.c | 89 +++++++++++++++++++++++++------------------ 1 file changed, 52 insertions(+), 37 deletions(-) Applied to u-boot-dm/next, thanks!