]> git.karo-electronics.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:50:41 +0000 (09:50 +0100)
commite7355f1112773a015e914b4f815460b7bbe88954
tree2201a951e3beddfeaf09a59f7c4c4127bb8086b8
parent0659a3107481012c778d9e249a3561474a4b4a7d
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