mfd: ab8500-core: Use devm_* memory/IRQ and allocation/free routines
authorLee Jones <lee.jones@linaro.org>
Mon, 5 Nov 2012 15:10:35 +0000 (16:10 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 11 Nov 2012 22:35:04 +0000 (23:35 +0100)
commit8c4203cb5814f53169dc4ff084a65dcf509b6f60
treeaea94f5c585274a4a5aa8813c39f7a770e35cd9c
parent84e6de813b2d1bdb127943d3c8edf1c1afaa90da
mfd: ab8500-core: Use devm_* memory/IRQ and allocation/free routines

It is better to use devm_* calls, as they allow for easier
and more automatic clean-up. Resources are device allocated,
so when a device is freed, so are all associated resources.

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/ab8500-core.c