gpio: ws16c48: Use devm_request_region
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>
Wed, 3 Feb 2016 20:17:50 +0000 (15:17 -0500)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 15 Feb 2016 23:19:54 +0000 (00:19 +0100)
commit148ad68b3d0dd0f0068ff5f6f47bc360011c429e
tree7aa4f996989beacd5d4daa00c09baef954580ff3
parent134414578518f095b65185535bc696277b5c57c6
gpio: ws16c48: Use devm_request_region

By the time request_region is called in the WinSystems WS16C48 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-ws16c48.c