mfd: tps6105x: Use managed resources when allocating memory
authorHimangi Saraogi <himangi774@gmail.com>
Sat, 19 Jul 2014 08:30:10 +0000 (14:00 +0530)
committerLee Jones <lee.jones@linaro.org>
Fri, 25 Jul 2014 14:31:47 +0000 (15:31 +0100)
commitad83533a634b82c3a291e8a00c778bb6bcd7862b
tree3e79d86d45474f6419fc8dde65b48957cc291717
parent23213218cb08d6de62996aab2241a3251ebbce70
mfd: tps6105x: Use managed resources when allocating memory

This patch introduces the use of devm_kzalloc instead of the
corresponding unmanaged version and does away with the kfrees in the
probe and remove functions. Also, a label is done away with.

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/tps6105x.c