Re: [PATCH 1/1] gpio-rcar: use devm_ioremap_resource()

2017-10-31 Thread Linus Walleij
On Thu, Oct 12, 2017 at 11:08 PM, Sergei Shtylyov wrote: > 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 er

Re: [PATCH 1/1] gpio-rcar: use devm_ioremap_resource()

2017-10-12 Thread Sergei Shtylyov
Sorry for (unintended) patch dupe... :-<

[PATCH 1/1] gpio-rcar: use devm_ioremap_resource()

2017-10-12 Thread Sergei Shtylyov
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_n