gpio: generic: 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:32 +0000 (20:35 +0530)
commitc05f813b96f260f214870e1f16bd98c2892c872d
tree7ff4a57bf9b6082938d907d757d9f25b70f55940
parentad2261ca7b099b6b8163cdcb8c635a5b6fcaad52
gpio: generic: Use devm_gpiochip_add_data() for gpio registration

Use devm_gpiochip_add_data() for GPIO registration and remove the
need of driver callback .remove.

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