staging: iio: lpc32xx_adc: Use devm_* APIs
authorSachin Kamat <sachin.kamat@linaro.org>
Sat, 31 Aug 2013 17:12:00 +0000 (18:12 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 7 Sep 2013 20:50:36 +0000 (21:50 +0100)
commit7d456e4ea28c193ccb5312bdd7fe168c30c2d96a
treee19ac6b55cc8ea254148fcb22b728d4fd59a899d
parent6a88fa48263117687cd592c2030b13bd95895391
staging: iio: lpc32xx_adc: Use devm_* APIs

devm_* APIs are device managed and make code simpler.
This also fixes an error in return type during clk_get
failure.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Roland Stigge <stigge@antcom.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/lpc32xx_adc.c