Searched hist:"148 ad68b3d0dd0f0068ff5f6f47bc360011c429e" (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/gpio/ |
H A D | gpio-ws16c48.c | diff 148ad68b3d0dd0f0068ff5f6f47bc360011c429e Wed Feb 03 21:17:50 CET 2016 William Breathitt Gray <vilhelm.gray@gmail.com> 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>
|