]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerJiri Slaby <jslaby@suse.cz>
Sat, 16 May 2015 07:12:43 +0000 (09:12 +0200)
commite7a8407b62058c296d0087cf6a3a867cbe14057f
tree5c5d83726bff42a6e48216db331ce0011d667e6d
parent1c5c833e1a16bdb7597d26c74a543bdf12435e31
gpio: unregister gpiochip device before removing it

commit 01cca93a9491ed95992523ff7e79dd9bfcdea8e0 upstream.

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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/gpio/gpiolib.c