diff options
author | William Breathitt Gray <vilhelm.gray@gmail.com> | 2016-02-03 21:17:40 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-02-16 00:19:53 +0100 |
commit | 134414578518f095b65185535bc696277b5c57c6 (patch) | |
tree | dfdda5368e6be010c823d025d12faa693a197d8d /drivers/gpio/gpio-ws16c48.c | |
parent | gpio: ich: Use devm_request_region (diff) | |
download | linux-134414578518f095b65185535bc696277b5c57c6.tar.xz linux-134414578518f095b65185535bc696277b5c57c6.zip |
gpio: sch311x: Use devm_request_region
By the time request_region is called in the SMSC SCH311x 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-ws16c48.c')
0 files changed, 0 insertions, 0 deletions