staging: iio: ad2s1200: Use devm_* APIs
authorSachin Kamat <sachin.kamat@linaro.org>
Wed, 11 Sep 2013 09:55:00 +0000 (10:55 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 14 Sep 2013 10:46:26 +0000 (11:46 +0100)
commit8d1b0b4887bce5fe50a371ccb7e650dcc413bab0
tree26832b3eec5d6e90de8b4bf1745a5aa9145d9619
parent9e4904c17560b8936a94aeadca8db909ba777ed8
staging: iio: ad2s1200: Use devm_* APIs

devm_* APIs are device managed and make code simpler.
This patch also fixes the missing gpio_free call in remove.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Graff Yang <graff.yang@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/resolver/ad2s1200.c