gpiolib: gpio_request_one(): add missing gpio_free()
authorAaro Koskinen <aaro.koskinen@nokia.com>
Wed, 22 Dec 2010 01:24:22 +0000 (17:24 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 23 Dec 2010 03:43:33 +0000 (19:43 -0800)
commite254811c205ec539b648cff54a7852ee8dcd2e5e
treeae6a382b424192053dbc1de6a9ee818262e1966b
parentd153ba64450b9371158c6516d6cac120faace44c
gpiolib: gpio_request_one(): add missing gpio_free()

If GPIO request succeeds, but configuration fails, it should be released.

Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Acked-by: Eric Miao <eric.miao@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/gpio/gpiolib.c