mfd: stmpe: Use devm_*() routines
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 22 Nov 2012 05:10:29 +0000 (10:40 +0530)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 23 Nov 2012 11:03:17 +0000 (12:03 +0100)
commitcb5faba951142fc00c41b680eec7003f21947b92
tree35717f6a04d9c837a12e6bb420984df64d99684b
parent0c418844dce21fa7000b51190f393c7d6a7ee12d
mfd: stmpe: Use devm_*() routines

This patch frees stmpe driver from tension of freeing resources.
devm_* derivatives of multiple routines are used while allocating resources,
which would be freed automatically by kernel.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/stmpe.c