From: Magnus Damm <[email protected]>
Fix request related issue in gpiolib:
- fix request-already-requested handling in gpio_request()
Signed-off-by: Magnus Damm <[email protected]>
---
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) {
On Thursday 15 January 2009, Magnus Damm wrote:
> From: Magnus Damm <[email protected]>
>
> Fix request related issue in gpiolib:
> - fix request-already-requested handling in gpio_request()
>
> Signed-off-by: Magnus Damm <[email protected]>
Acked-by: David Brownell <[email protected]>
Appropriate for 2.6.28-stable.
> ---
>
> 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) {
>
>