devres: introduce API "devm_kstrdup"

This patch introduces "devm_kstrdup" API so that the
device's driver can allocate memory and copy string.

Signed-off-by: Manish Badarkhe <badarkhe.manish@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
Manish Badarkhe 2014-01-29 20:27:27 +05:30 • committed by Mark Brown
commit e31108cad3
2 changed files with 27 additions and 0 deletions