iio:trigger: Introduce the use of devm_kzalloc
authorHimangi Saraogi <himangi774@gmail.com>
Tue, 7 Jan 2014 22:19:00 +0000 (22:19 +0000)
committerJonathan Cameron <jic23@kernel.org>
Mon, 7 Jul 2014 17:12:02 +0000 (18:12 +0100)
commitf64c3052b62ca6684f43f923dcc19fefcc8606c2
treeeef71003ef01faac3878c03b160556a28ac1a24f
parent744966d6dc7d9945d8b9cc511d98a0ec5aeee9ed
iio:trigger: Introduce the use of devm_kzalloc

This patch introduces the use of the managed version of kzalloc and
removes the kfrees in the probe and remove functions. More return
paths are added and the labels are renamed to order them.

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/trigger/iio-trig-bfin-timer.c