pinctrl: mcp23s08: switch to devm_gpiochip_add_data
authorSebastian Reichel <sebastian.reichel@collabora.co.uk>
Mon, 15 May 2017 09:24:32 +0000 (11:24 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 23 May 2017 07:49:06 +0000 (09:49 +0200)
commitd0e49dabc60bf00b4a148742d3e4a16b1dbd8577
treeff63b8de055433275c0f018d0ebf68691382416f
parent2f98e78b5a6b0f14073d677a224428e24b3bdccb
pinctrl: mcp23s08: switch to devm_gpiochip_add_data

Switching to devm_gpiochip_add_data simplifies the driver's
cleanup routine and safes a few loc.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-mcp23s08.c