mfd: ab8500-core: Fix invalid free of devm_ allocated data
authorTushar Behera <tushar.behera@linaro.org>
Fri, 23 Nov 2012 12:18:43 +0000 (17:48 +0530)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 30 Nov 2012 10:51:30 +0000 (11:51 +0100)
commit4e1328be4d4e4967d54bf7ae3b0805ec53fc4f91
tree195c32c1474fa064383d3c221c7082d0805f07b7
parent13ea5813238239930d12d28bd7504a3ac6ba14d1
mfd: ab8500-core: Fix invalid free of devm_ allocated data

The objects allocated by devm_* APIs are managed by devres and are
freed when the device is detached. Hence there is no need to remove
them explicitly in remove function.

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/ab8500-core.c