Commit 33f909fd authored by Bartosz Golaszewski's avatar Bartosz Golaszewski
Browse files

gpio: mockup: simplify code by using cleanup helpers



Use lock from linux/cleanup.h and simplify locking paths.

Signed-off-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 9790222d
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment