]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: sysfs: clean up gpiod_export_link locking
authorJohan Hovold <johan@kernel.org>
Mon, 4 May 2015 15:10:43 +0000 (17:10 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 12 May 2015 08:47:35 +0000 (10:47 +0200)
commit48ab7f81e00cee47586587dc72b3e900bc4174da
tree1d39883f05c4a462e55a645c442db81241debb55
parent3a7b71c42c4562208786665e568287c189780a08
gpio: sysfs: clean up gpiod_export_link locking

Drop unnecessary locking from gpiod_export_link. If the class device has
not already been unregistered, class_find_device returns the ref-counted
class device so there's no need for locking.

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