diff options
| author | Alexandre Courbot <[email protected]> | 2013-10-04 17:59:58 +0000 |
|---|---|---|
| committer | Linus Walleij <[email protected]> | 2013-10-11 14:31:54 +0000 |
| commit | 0204df470d6db830f0f2f5654ec582be84d81588 (patch) | |
| tree | 22bbd2debb7534f143143e6648a2acd4911306dd /lib/spinlock_debug.c | |
| parent | gpiolib: safer implementation of desc_to_gpio() (diff) | |
| download | kernel-0204df470d6db830f0f2f5654ec582be84d81588.tar.gz kernel-0204df470d6db830f0f2f5654ec582be84d81588.zip | |
gpiolib: let gpiod_request() return -EPROBE_DEFER
Patch be1a4b brought some improvements to the GPIO error handling code,
but also changed the return value of gpiod_request() when called on a
not yet initialized GPIO descriptor: it now returns -EINVAL instead of
-EPROBE_DEFER, and this affects some drivers.
This patch restores the original behavior for gpiod_request(). It is
safe to do so now that desc_to_gpio() does not rely on the GPIO
descriptor to be initialized. Other functions changed by patch be1a4b
do not see their return value affected, so these are not reverted.
Signed-off-by: Alexandre Courbot <[email protected]>
Reported-by: Dr. H. Nikolaus Schaller <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'lib/spinlock_debug.c')
0 files changed, 0 insertions, 0 deletions
