]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
devres: add devm_kmalloc() and friends (managed memory allocators)
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Sat, 25 Jul 2015 12:52:36 +0000 (21:52 +0900)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 06:17:18 +0000 (08:17 +0200)
commit2b78358de6bb9ccc379dd5e7ee61542b90177d32
tree229f893a6a7e84dbb4854b333f897bc913fc25a1
parent524e6265452d51656c6c57f99d4b38f57b5dcf5c
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>
drivers/core/devres.c
include/dm/device.h