gpio: pcf857x: 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:39 +0000 (20:35 +0530)
commit3aebfc9bd81a4a8d23e494732d8e88ae174de2cd
tree8d268f7d7e41b24a58d677de074338708eea3a2c
parent0ece84f54a3324318c209d5aa9beffa281f2e122
gpio: pcf857x: 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-pcf857x.c