gpio: mvebu: 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:37 +0000 (20:35 +0530)
commit00b9ab4a25cf5a4527cf6c8adb415caa4f05ed3d
treed04a08b15ceccc3ad8d2391266ec93d7429962e5
parent33bde5c503834439231df6ff3b8a17b724dbca70
gpio: mvebu: Use devm_gpiochip_add_data() for gpio registration

Use devm_gpiochip_add_data() for GPIO registration and clean the
error path.

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