]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit153b325aee1df57fe8d95235e07da31be6169deb
treecc4ace59913a43506087a87c9655c3bfc91f6962
parente87127de92b559b404dac00dc4b41af14107d26f
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