gpio: unregister gpiochip device before removing it
authorJohan Hovold <johan@kernel.org>
Mon, 12 Jan 2015 16:12:29 +0000 (17:12 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 14 Jan 2015 13:27:01 +0000 (14:27 +0100)
commit01cca93a9491ed95992523ff7e79dd9bfcdea8e0
treecc4ace59913a43506087a87c9655c3bfc91f6962
parent6798acaa0138d8b12f1c54402ebcb66fea3deb03
gpio: unregister gpiochip device before removing it

Unregister gpiochip device (used to export information through sysfs)
before removing it internally. This way removal will reverse addition.

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c