]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: tegra: annotate IO_*_VIRT pointers
authorOlof Johansson <olof@lixom.net>
Mon, 10 Oct 2011 04:05:44 +0000 (21:05 -0700)
committerOlof Johansson <olof@lixom.net>
Mon, 10 Oct 2011 18:02:46 +0000 (11:02 -0700)
commit2439da09756ce57e31e3b3913d6995d30bd8c23f
tree26e0b5fe23ea6ad2206f51f9e442e79a3850911f
parent3ee72ca99288f1de95ec9c570e43f531c8799f06
ARM: tegra: annotate IO_*_VIRT pointers

Provide __iomem annotation for IO_*_VIRT pointers, which will propagate
up through IO_TO_VIRT(). Also fixes a 0 to NULL conversion of the base
case to silence sparse.

Unfortunately map_desc takes an unsigned long for the pointer instead of
a void __iomem *. For now, cast explicitly for those cases.

Signed-off-by: Olof Johansson <olof@lixom.net>
Acked-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-tegra/include/mach/io.h
arch/arm/mach-tegra/io.c