commit | b475e1fb27c006d10a5c74d9871a2cf6cee998bc | [log] [tgz] |
---|---|---|
author | Masahiro Yamada <yamada.masahiro@socionext.com> | Sat Jul 25 21:52:36 2015 +0900 |
committer | Simon Glass <sjg@chromium.org> | Thu Aug 06 07:44:29 2015 -0600 |
tree | 506866b0d88d2ff24d87cecf26e8eb3da844e811 | |
parent | 8b15b160797e579c31368357ec704ae60d092316 [diff] |
devres: add devm_kmalloc() and friends (managed memory allocators) devm_kmalloc() is identical to kmalloc() except that the memory allocated with it is managed and will be automatically released when the device is removed/unbound. Likewise for the other variants. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Simon Glass <sjg@chromium.org>