From: Magnus Damm Date: Thu, 29 Jan 2009 22:25:12 +0000 (-0800) Subject: gpiolib: fix request related issue X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7460db567bbca76bf087d1694d792a1a96bdaa26;p=linux-2.6-omap-h63xx.git gpiolib: fix request related issue Fix request-already-requested handling in gpio_request(). Signed-off-by: Magnus Damm Acked-by: David Brownell Cc: [2.6.28.x] Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 35e7aea4222..42fb2fd24c0 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -789,6 +789,7 @@ int gpio_request(unsigned gpio, const char *label) } else { status = -EBUSY; module_put(chip->owner); + goto done; } if (chip->request) {