[PATCH] pinctrl: nomadik: fix incorrect type in return expression
Linus Walleij
linus.walleij at linaro.org
Mon Aug 7 06:14:12 PDT 2017
On Fri, Aug 4, 2017 at 6:49 AM, Masahiro Yamada
<yamada.masahiro at socionext.com> wrote:
> Sparse reports "warning: incorrect type in return expression (different
> address spaces)" because nmk_gpio_populate_chip() is supposed to return
> (struct nmk_gpio_chip *) whereas devm_ioremap_resource() returns
> (void __iomem *). ERR_CAST() is needed to fix the warning.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
Patch applied.
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list