Skip to content
Snippets Groups Projects
Commit 7460db56 authored by Magnus Damm's avatar Magnus Damm Committed by Linus Torvalds
Browse files

gpiolib: fix request related issue


Fix request-already-requested handling in gpio_request().

Signed-off-by: default avatarMagnus Damm <damm@igel.co.jp>
Acked-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Cc: <stable@kernel.org>		[2.6.28.x]
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 7bcc1bb1
No related branches found
No related tags found
No related merge requests found
...@@ -789,6 +789,7 @@ int gpio_request(unsigned gpio, const char *label) ...@@ -789,6 +789,7 @@ int gpio_request(unsigned gpio, const char *label)
} else { } else {
status = -EBUSY; status = -EBUSY;
module_put(chip->owner); module_put(chip->owner);
goto done;
} }
if (chip->request) { if (chip->request) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment