Re: [U-Boot] [PATCH v2 02/24] dm: core: Allow device names to be freed automatically

2016-05-14 Thread Simon Glass
On 1 May 2016 at 13:52, Simon Glass 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

[U-Boot] [PATCH v2 02/24] dm: core: Allow device names to be freed automatically

2016-05-01 Thread Simon Glass
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 Gla