gpio: siox: Use devm_ managed gpiochip
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 26 Jun 2019 08:23:28 +0000 (10:23 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 3 Jul 2019 08:24:02 +0000 (10:24 +0200)
commit8b29450437d7e3a507d8421621b02fcaa2368637
treeb701772e79a024428da7fe85fba9e355162c259c
parentacc141374df40abd24ed5e128c8a3eb43805a688
gpio: siox: Use devm_ managed gpiochip

By using devm_gpiochip_add_data() we can get rid of the
remove() callback. As this driver doesn't use the
gpiochip data pointer we simply pass in NULL.

Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-siox.c