
14 May
2016
14 May
'16
9:37 p.m.
On 1 May 2016 at 13:52, Simon Glass sjg@chromium.org wrote:
Some devices have a name that is stored in allocated memory. At present there is no mechanism to free this memory when the device is unbound.
Add a device flag to track whether a name is allocated and a function to add the flag. Free the memory when the device is unbound.
Signed-off-by: Simon Glass sjg@chromium.org
Changes in v2: None
drivers/core/device-remove.c | 2 ++ drivers/core/device.c | 6 ++++++ include/dm/device.h | 16 ++++++++++++++++ 3 files changed, 24 insertions(+)
Applied to u-boot-dm.