On Fri, Sep 20, 2019 at 11:23 AM Markus Elfring <Markus.Elfring@xxxxxx> wrote: > From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx> > Date: Fri, 20 Sep 2019 10:52:56 +0200 > > Simplify this function implementation by using the wrapper function > “devm_platform_ioremap_resource” instead of calling the functions > “platform_get_resource” and “devm_ioremap_resource” directly. > > * Thus reduce also a bit of exception handling code here. > * Delete the local variable “res”. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx> Seems correct. Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx> BR Linus Walleij