]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: 104-idio-16: Use devm_request_region
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>
Wed, 3 Feb 2016 20:17:02 +0000 (15:17 -0500)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 15 Feb 2016 23:19:52 +0000 (00:19 +0100)
commit5819a9d8ccfde02d89f88a3519dfa12242ea8e11
tree4fecd48c9ab5b63bdc252e54c4102ab2639bfc72
parentefa4ceb8aa8425bbe2598814679d1812ce07ee55
gpio: 104-idio-16: Use devm_request_region

By the time request_region is called in the ACCES 104-IDIO-16 GPIO
driver, a corresponding device structure has already been allocated. The
devm_request_region function should be used to help simplify the cleanup
code and reduce the possible points of failure.

Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-104-idio-16.c