gpio: tb10x: 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:44 +0000 (20:35 +0530)
commitad7b550ad7c2499dc5ed575a81830463fee51631
tree81362e89b86ecf13e3ef223f9e68de46e4659684
parent94c683ab8d3f1201822f3ff18d62f96a7b26eed5
gpio: tb10x: 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-tb10x.c