OSDN Git Service

gpio: sysfs: reduce gpiochip-export locking scope
authorJohan Hovold <johan@kernel.org>
Mon, 4 May 2015 15:10:30 +0000 (17:10 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 12 May 2015 08:46:40 +0000 (10:46 +0200)
commit3ff74be5c1a72df6d304dcb453f68e3c3bea3bdd
tree301c70d5cea8d288630022114d213724b953dad6
parentcecf58ab551f746c1e2b549d90b51a94b442d1e0
gpio: sysfs: reduce gpiochip-export locking scope

Reduce scope of sysfs_lock protection during chip export and unexport,
which is only needed to prevent gpiod (re-)exports during chip removal.

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