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)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 26 Oct 2012 07:25:10 +0000 (09:25 +0200)
commitad2fab36d7922401c4576fb7ea9b21a47a29a17f
tree16b7246490039315f86bbd45e987a71367f94000
parentc57d75c099e55500b620f50a207e61b9e20ecd29
gpiolib: Don't return -EPROBE_DEFER to sysfs, or for invalid gpios

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

Cc: stable@kernel.org
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c