]> 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>
Wed, 12 Oct 2011 23:25:50 +0000 (16:25 -0700)
commit2bf929af24153c5e167eadffc55955091965a465
tree2dce87bd5a8326e6c1b1ec487da37caf08411159
parent976d167615b64e14bc1491ca51d424e2ba9a5e84
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