gpio: adnp: 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 14:49:46 +0000 (20:19 +0530)
commitdaa994bfe22ed690fb8e377c43faf7e16aad59da
treec18a06fe89820b5a99d6802950fe1e6061d0266c
parenta718ed2cfed0faba89b4bb9fa9f1ab5957891de9
gpio: adnp: Use devm_gpiochip_add_data() for gpio registration

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

Also remove the need of driver callback .remove.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Cc: Alexandre Courbot <gnurou@gmail.com>
drivers/gpio/gpio-adnp.c