]> git.baikalelectronics.ru Git - kernel.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)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 26 Oct 2012 07:25:10 +0000 (09:25 +0200)
commit4fc1858164189f281f69445d483875a5571318ea
tree16b7246490039315f86bbd45e987a71367f94000
parent076a265f11f546f915c5036cd067d79041ae3629
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