Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -789,6 +789,7 @@ int gpio_request(unsigned gpio, const char *label)
	} else {
		status = -EBUSY;
		module_put(chip->owner);
		goto done;
	}

	if (chip->request) {