提交 7460db56 编写于 作者: M Magnus Damm 提交者: Linus Torvalds

gpiolib: fix request related issue

Fix request-already-requested handling in gpio_request().
Signed-off-by: NMagnus Damm <damm@igel.co.jp>
Acked-by: NDavid Brownell <dbrownell@users.sourceforge.net>
Cc: <stable@kernel.org>		[2.6.28.x]
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册