commit | 2b07f6859ad17b74ce490f371f4878add6ae5a11 | [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 | 608f26c51bebc68db7f2edc7590ee513d2bc5465 [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>