misc: bh1770glc: Use managed functions
authorHimangi Saraogi <himangi774@gmail.com>
Mon, 21 Jul 2014 08:25:35 +0000 (13:55 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jul 2014 23:28:11 +0000 (16:28 -0700)
commit4734e39064219fca321ddbc930b46e7c3c194143
tree417fed86b2900eb0ae3c6e329a398ed63feed10b
parent0178a7a54d408d2c5b7bbe7eee9450bffbec0989
misc: bh1770glc: Use managed functions

This patch introduces the use of managed interfaces like devm_kzalloc,
devm_regulator_bulk_get and does away with the functions to free the
allocated memory in the probe and remove functions. Also, some labels
are removed and renamed to preserve the ordering.

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/bh1770glc.c