]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita22007d0e4eaa83838c3a4d8aa6c9e1a79c624b2
tree7125466673bfe462b3ffbaf85b31cb66906d22cd
parent52475edfa4d9fc29fe662cb23f37dddd8c6fc24d
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