The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] gpiolib: request fix V2
@ 2009-01-16  7:34 Magnus Damm
  2009-01-16  8:11 ` David Brownell
  0 siblings, 1 reply; 2+ messages in thread
From: Magnus Damm @ 2009-01-16  7:34 UTC (permalink / raw)
  To: linux-kernel; +Cc: david-b, Magnus Damm, lethal, akpm

From: Magnus Damm <damm@igel.co.jp>

Fix request related issue in gpiolib:
 - fix request-already-requested handling in gpio_request()

Signed-off-by: Magnus Damm <damm@igel.co.jp>
---

  Changes since V1:
  - dropped the gpio_direction_input/output fixes

 drivers/gpio/gpiolib.c |    1 +
 1 file changed, 1 insertion(+)

--- 0001/drivers/gpio/gpiolib.c
+++ work/drivers/gpio/gpiolib.c	2008-12-26 13:09:50.000000000 +0900
@@ -789,6 +789,7 @@ int gpio_request(unsigned gpio, const ch
 	} else {
 		status = -EBUSY;
 		module_put(chip->owner);
+		goto done;
 	}
 
 	if (chip->request) {

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-01-16  8:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-16  7:34 [PATCH] gpiolib: request fix V2 Magnus Damm
2009-01-16  8:11 ` David Brownell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox