]> git.baikalelectronics.ru Git - kernel.git/commit
soc: renesas: rcar-rst: Fix __iomem on configure call
authorBen Dooks (Codethink) <ben.dooks@codethink.co.uk>
Wed, 18 Dec 2019 13:52:30 +0000 (13:52 +0000)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 6 Jan 2020 10:08:43 +0000 (11:08 +0100)
commita5119f0107340b60b2deb2fa42a35e2f79d37d70
tree9fac69a09ed11438c5299fe2371078183f43d800
parentc0c55dc8c3668c48deb2cdbd0cc5a0fcea9c9a0d
soc: renesas: rcar-rst: Fix __iomem on configure call

The configure call back takes a register pointer, so should
have been marked with __iomem. Add this to silence the
following sparse warnings:

    drivers/soc/renesas/rcar-rst.c:33:22: warning: incorrect type in initializer (incompatible argument 1 (different address spaces))
    drivers/soc/renesas/rcar-rst.c:33:22:    expected int ( *configure )( ... )
    drivers/soc/renesas/rcar-rst.c:33:22:    got int ( * )( ... )
    drivers/soc/renesas/rcar-rst.c:97:40: warning: incorrect type in argument 1 (different address spaces)
    drivers/soc/renesas/rcar-rst.c:97:40:    expected void *base
    drivers/soc/renesas/rcar-rst.c:97:40:    got void [noderef] <asn:2> *[assigned] base

Signed-off-by: Ben Dooks (Codethink) <ben.dooks@codethink.co.uk>
Link: https://lore.kernel.org/r/20191218135230.2610161-1-ben.dooks@codethink.co.uk
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/soc/renesas/rcar-rst.c