gpio: Convert to devm_ioremap_resource()
Convert all uses of devm_request_and_ioremap() to the newly introduced devm_ioremap_resource() which provides more consistent error handling. devm_ioremap_resource() provides its own error messages so all explicit error messages can be removed from the failure code paths. Signed-off-by:Thierry Reding <thierry.reding@avionic-design.de> Cc: Grant Likely <grant.likely@secretlab.ca> Cc: Linus Walleij <linus.walleij@linaro.org> Acked-by:
Viresh Kumar <viresh.kumar@linaro.org> Tested-by:
Gregory CLEMENT <gregory.clement@free-electrons.com> Acked-by:
Gregory CLEMENT <gregory.clement@free-electrons.com> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
- drivers/gpio/gpio-mvebu.c 8 additions, 8 deletionsdrivers/gpio/gpio-mvebu.c
- drivers/gpio/gpio-mxs.c 6 additions, 3 deletionsdrivers/gpio/gpio-mxs.c
- drivers/gpio/gpio-spear-spics.c 3 additions, 5 deletionsdrivers/gpio/gpio-spear-spics.c
- drivers/gpio/gpio-stp-xway.c 4 additions, 5 deletionsdrivers/gpio/gpio-stp-xway.c
- drivers/gpio/gpio-tegra.c 4 additions, 5 deletionsdrivers/gpio/gpio-tegra.c
Loading
Please register or sign in to comment