]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: lp873x: Use devm_gpiochip_add_data() for gpio registration
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 10 Sep 2016 12:04:42 +0000 (12:04 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 13 Sep 2016 08:33:49 +0000 (10:33 +0200)
commit500d104c5f067bab3ce1bc875368d07a6b72d366
treebd6ed2acd2ba997ccd7f4c3bfc673d2b9b07d4d9
parent78e8baaa2c6a85e23917ad790bd0eafc701c6941
gpio: lp873x: Use devm_gpiochip_add_data() for gpio registration

Use devm_gpiochip_add_data() for GPIO registration and remove the need
of driver callback .remove.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-lp873x.c