Commit 7460db56 authored by Magnus Damm's avatar Magnus Damm Committed by Linus Torvalds

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
......@@ -789,6 +789,7 @@ int gpio_request(unsigned gpio, const char *label)
} else {
status = -EBUSY;
module_put(chip->owner);
goto done;
}
if (chip->request) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment