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

Simon Glass sjg at chromium.org
Sat May 14 21:37:23 CEST 2016


On 1 May 2016 at 13:52, Simon Glass <sjg at 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 at 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.


More information about the U-Boot mailing list