mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
gpiolib: fix request related issue
Fix request-already-requested handling in gpio_request(). Signed-off-by: Magnus Damm <damm@igel.co.jp> Acked-by: David Brownell <dbrownell@users.sourceforge.net> Cc: <stable@kernel.org> [2.6.28.x] Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
7bcc1bb123
commit
7460db567b
1 changed files with 1 additions and 0 deletions
|
@ -789,6 +789,7 @@ int gpio_request(unsigned gpio, const char *label)
|
|||
} else {
|
||||
status = -EBUSY;
|
||||
module_put(chip->owner);
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (chip->request) {
|
||||
|
|
Loading…
Reference in a new issue