]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: amd-fch: Fix type error found by sparse
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 1 Mar 2019 07:53:35 +0000 (08:53 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 1 Mar 2019 08:08:55 +0000 (09:08 +0100)
commite451a8e737037ffdf9e00af10cd5e618ec7da7d8
treee92c73346f6f824c68ced488f07f50b12287ba09
parenta5b396c086442eca3b0f2e7751e41460fdfceca2
gpio: amd-fch: Fix type error found by sparse

Sparse complains:

gpio-amd-fch.c:45:27: sparse: expected void *
gpio-amd-fch.c:45:27: sparse: got void [noderef] <asn:2> *
gpio-amd-fch.c:45:27: sparse: warning: incorrect type in return
              expression (different address spaces)
gpio-amd-fch.c:56:9: sparse:  expected void const volatile [noderef]
              <asn:2> *addr
gpio-amd-fch.c:56:9: sparse:  expected void volatile [noderef] <asn:2> *addr
gpio-amd-fch.c:56:9: sparse:  got void *ptr
gpio-amd-fch.c:56:9: sparse:  warning: incorrect type in argument 1 (different address spaces)

I think it is because void * is returned rather than void __iomem *,
so fix it up.

Cc: Enrico Weigelt <info@metux.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-amd-fch.c