From: Magnus Damm Date: Thu, 29 Jan 2009 22:25:12 +0000 (-0800) Subject: gpiolib: fix request related issue X-Git-Tag: v2.6.29-rc4~122 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=7460db567bbca76bf087d1694d792a1a96bdaa26;p=~shefty%2Frdma-dev.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) {