]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: ich: Use devm_request_region
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>
Wed, 3 Feb 2016 20:17:27 +0000 (15:17 -0500)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 15 Feb 2016 23:19:53 +0000 (00:19 +0100)
commitbab987a34cc1cf5a39df080f550f055108218379
treedb55d9ec58d29933047bf0babf3e7f436954c898
parentf5e50f6d727a43af7e835d38bae8495d8e567fb7
gpio: ich: Use devm_request_region

By the time request_region is called in the Intel ICH series 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.

Cc: Peter Tyser <ptyser@xes-inc.com>
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-ich.c