gpio: crystalcove: Use devm_gpiochip_add_data() for gpio registration
authorLaxman Dewangan <ldewangan@nvidia.com>
Mon, 22 Feb 2016 12:13:28 +0000 (17:43 +0530)
committerLaxman Dewangan <ldewangan@nvidia.com>
Tue, 23 Feb 2016 15:05:27 +0000 (20:35 +0530)
commit828e47e45303d046d17e3f7cb44720cfa3e99f10
tree08139d61aaf991a9aae4c95df790810d9215e7f0
parentda9d67001697fc20beb8235af4c67a6bbabf21cc
gpio: crystalcove: Use devm_gpiochip_add_data() for gpio registration

Use devm_gpiochip_add_data() for GPIO registration and remove the
call of gpiochip_remove() from error path.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
drivers/gpio/gpio-crystalcove.c