diff options
author | William Breathitt Gray <vilhelm.gray@gmail.com> | 2016-02-03 23:15:21 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-02-16 02:19:51 +0300 |
commit | aa6c3602264e3dbdbccac79e125aafee261fdf7b (patch) | |
tree | 0510bf20a70c68550c24bb545c162ca165ff4530 /drivers/gpio/gpio-104-idi-48.c | |
parent | 22aeddb58dcc920cf2f78652c01272d9dff3d30a (diff) | |
download | linux-aa6c3602264e3dbdbccac79e125aafee261fdf7b.tar.xz |
gpio: 104-dio-48e: Use devm_request_region
By the time request_region is called in the ACCES 104-DIO-48E 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>
Diffstat (limited to 'drivers/gpio/gpio-104-idi-48.c')
0 files changed, 0 insertions, 0 deletions