summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-sta2x11.c
diff options
context:
space:
mode:
authorSergei Shtylyov2017-10-12 23:08:14 +0200
committerLinus Walleij2017-10-31 09:52:13 +0100
commit5a24d4b601561da08a70c065d4630bd9fadb37e8 (patch)
treed35b970244b38ef6429f914f70b5bcad240cb11d /drivers/gpio/gpio-sta2x11.c
parentgpio-mmio: Use the new .get_multiple() callback (diff)
downloadkernel-qcow2-linux-5a24d4b601561da08a70c065d4630bd9fadb37e8.tar.gz
kernel-qcow2-linux-5a24d4b601561da08a70c065d4630bd9fadb37e8.tar.xz
kernel-qcow2-linux-5a24d4b601561da08a70c065d4630bd9fadb37e8.zip
gpio-rcar: use devm_ioremap_resource()
Using devm_ioremap_resource() has several advantages over devm_ioremap(): - it checks the passed resource's validity; - it calls devm_request_mem_region() to check for the resource overlap; - it prints an error message in case of error. We can call devm_ioremap_resource() instead of devm_ioremap_nocache() as ioremap() and ioremap_nocache() are implemented identically on ARM. Doing this saves 2 LoCs and 80 bytes (AArch64 gcc 4.8.5). Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-sta2x11.c')
0 files changed, 0 insertions, 0 deletions