Skip to content
Snippets Groups Projects
Commit a2040fac authored by Simon Glass's avatar Simon Glass
Browse files

dm: core: Allow device names to be freed automatically


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: default avatarSimon Glass <sjg@chromium.org>
parent 72a85c0d
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment