devres: introduce API "devm_kmemdup
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Mon, 28 Apr 2014 23:51:00 +0000 (00:51 +0100)
committerJonathan Cameron <jic23@kernel.org>
Tue, 29 Apr 2014 20:58:15 +0000 (21:58 +0100)
commit3046365bb470f0ec2f7cf5cb07a8ee7e4b490103
tree66fbbb9b115c71814ff5a6e36566a47c492f0a6a
parent37aa48368f2508defb1976be62e1ed6ca4dde683
devres: introduce API "devm_kmemdup

Introduce devm_kmemdup, which uses resource managed kmalloc.
There are several request from maintainers to add this instead
of using kmemdup.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Documentation/driver-model/devres.txt
drivers/base/devres.c
include/linux/device.h