diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-08-04 06:49:47 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2017-08-14 15:01:59 +0200 |
commit | 376c7a756908abb2ab2bf8cc88be790f337780fe (patch) | |
tree | 0395e200711746e3b4b9be3a1b0f9eaa63d9ad93 /drivers/pinctrl/pinmux.c | |
parent | pinctrl: sirf: add static to local data (diff) | |
download | linux-376c7a756908abb2ab2bf8cc88be790f337780fe.tar.xz linux-376c7a756908abb2ab2bf8cc88be790f337780fe.zip |
pinctrl: nomadik: fix incorrect type in return expression
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@socionext.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinmux.c')
0 files changed, 0 insertions, 0 deletions