commit | 7760ba23b2dddf35c48576426b472451f0959b8f | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sun May 01 13:52:23 2016 -0600 |
committer | Simon Glass <sjg@chromium.org> | Tue May 17 09:54:43 2016 -0600 |
tree | adc314cd94f8a10e4ac5bb228ae8d98c1b54fead | |
parent | 77f7fb8925dc79d3f7ae3bf843afd5bc8ca553fc [diff] |
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: Simon Glass <sjg@chromium.org>