gpio: ts5500: 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:49 +0000 (20:35 +0530)
commit973eff01c524ac8d60f125263fccc28c39e384ed
tree62b93c2f8b5395b4ca60297e487dc739bd03855e
parent33ba54ee474cda1b55030ba451cf0b804338c742
gpio: ts5500: 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-ts5500.c