diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2017-10-13 00:08:14 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2017-10-31 09:52:13 +0100 |
commit | 5a24d4b601561da08a70c065d4630bd9fadb37e8 (patch) | |
tree | d35b970244b38ef6429f914f70b5bcad240cb11d /tools/usb | |
parent | 80057cb417b2873cf645ac85568118c32f038f4c (diff) | |
download | blackbird-op-linux-5a24d4b601561da08a70c065d4630bd9fadb37e8.tar.gz blackbird-op-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 'tools/usb')
0 files changed, 0 insertions, 0 deletions