lkml.org 
[lkml]   [2009]   [Jan]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
Subject[PATCH] gpiolib: request fix V2
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) {

\
 
 \ /
  Last update: 2009-01-16 08:39    [W:0.220 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site