aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra/apbio.c
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2012-08-10 09:03:02 -0400
committerStephen Warren <swarren@nvidia.com>2012-09-06 13:46:58 -0400
commitf8e798a9e215068e0de3dcc3d61a3dc4b94fde12 (patch)
treeb3a5d4a84e63710a48a9d349b320681b334caabf /arch/arm/mach-tegra/apbio.c
parent4cbe5a555fa58a79b6ecbb6c531b8bab0650778d (diff)
ARM: tegra: use IO_ADDRESS for getting virtual address
Use macro IO_ADDRESS for getting virtual address of corresponding physical address to make the consistency with rest of Tegra code-base. This macro calls the IO_TO_VIRT() which is defined in arch/arm/mach-tegra/include/mach/iomap.h Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/apbio.c')
-rw-r--r--arch/arm/mach-tegra/apbio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/apbio.c b/arch/arm/mach-tegra/apbio.c
index dc0fe389be56..643a37809a15 100644
--- a/arch/arm/mach-tegra/apbio.c
+++ b/arch/arm/mach-tegra/apbio.c
@@ -293,12 +293,12 @@ static apbio_write_fptr apbio_write;
293 293
294static u32 tegra_apb_readl_direct(unsigned long offset) 294static u32 tegra_apb_readl_direct(unsigned long offset)
295{ 295{
296 return readl(IO_TO_VIRT(offset)); 296 return readl(IO_ADDRESS(offset));
297} 297}
298 298
299static void tegra_apb_writel_direct(u32 value, unsigned long offset) 299static void tegra_apb_writel_direct(u32 value, unsigned long offset)
300{ 300{
301 writel(value, IO_TO_VIRT(offset)); 301 writel(value, IO_ADDRESS(offset));
302} 302}
303 303
304void tegra_apb_io_init(void) 304void tegra_apb_io_init(void)