gpio: simplify gpiochip_export()
authorAlexandre Courbot <acourbot@nvidia.com>
Tue, 22 Jul 2014 07:17:40 +0000 (16:17 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 23 Jul 2014 15:37:51 +0000 (17:37 +0200)
commit14141a9352d007434ff61df1e16a2bcaf3119307
treef54c02c3344952004a08f1ea3f1913467c5fa357
parentf63ad7ed71e525b74fe486d25cdc788d6531f4a9
gpio: simplify gpiochip_export()

For some reason gpiochip_export() would invalidate all the descriptors
of a chip if exporting it to sysfs failed. This does not appear as
necessary. Remove that part of the code.

While we are at it, add a note about the non-safety of temporarily
releasing a spinlock in the middle of the loop that protects its
iterator, and explain why this is done.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-sysfs.c