gpio: mxc: 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)
commitffc566303eab28e38175d4be5f62dd55fc1c6d72
treea11506664c9138c67883712cfdbf6fd3b649d0e6
parent00b9ab4a25cf5a4527cf6c8adb415caa4f05ed3d
gpio: mxc: 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-mxc.c