gpio: fix spurious printk when freeing a gpio
authorJon Povey <jon.povey@racelogic.co.uk>
Tue, 27 Jul 2010 20:18:06 +0000 (13:18 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 27 Jul 2010 21:32:07 +0000 (14:32 -0700)
commit6a99ad4a2e1b1693ffe8e40cc0dddfc633ce2a50
tree7125466673bfe462b3ffbaf85b31cb66906d22cd
parent952e1c6632ab5060a2323624d2908f31d62fc0a3
gpio: fix spurious printk when freeing a gpio

When freeing a gpio that has not been exported, gpio_unexport() prints a
debug message when it should just fall through silently.

Example spurious message:

gpio_unexport: gpio0 status -22

Signed-off-by: Jon Povey <jon.povey@racelogic.co.uk>
Cc: David Brownell <david-b@pacbell.net>
Acked-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de>
Cc: Gregory Bean <gbean@codeaurora.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/gpio/gpiolib.c