]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
gpiolib: Don't return -EPROBE_DEFER to sysfs, or for invalid gpios
authorMathias Nyman <mathias.nyman@linux.intel.com>
Thu, 25 Oct 2012 11:03:03 +0000 (14:03 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Nov 2012 08:56:48 +0000 (09:56 +0100)
commit4b4717878e2e70626855d5a6b4639a8e37599acc
tree69a34e2fedc4eb1cd6b251c1974987bf3817ccfb
parent11d65f48c02dae54020c407d1cf3f2dfd44e88c0
gpiolib: Don't return -EPROBE_DEFER to sysfs, or for invalid gpios

commit ad2fab36d7922401c4576fb7ea9b21a47a29a17f upstream.

gpios requested with invalid numbers, or gpios requested from userspace via sysfs
should not try to be deferred on failure.

Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpio/gpiolib.c