]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm: core: Allocate platform data when binding a device
authorSimon Glass <sjg@chromium.org>
Sun, 25 Jan 2015 15:27:00 +0000 (08:27 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 30 Jan 2015 00:09:54 +0000 (17:09 -0700)
commitf8a85449ef3e0963add728815771ccc09aa99875
treedff087eeb955e883a0e12f597acdc734961bdb4c
parent72ebfe86fac2ca0a0e1af9fe1eaa3a634e3e17a1
dm: core: Allocate platform data when binding a device

When using allocated platform data, allocate it when we bind the device.
This makes it possible to fill in this information before the device is
probed.

This fits with the platform data model (when not using device tree),
since platform data exists at bind-time.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
drivers/core/device-remove.c
drivers/core/device.c
test/dm/test-fdt.c