Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da8f2e24 authored by Olof Johansson's avatar Olof Johansson Committed by Linus Torvalds
Browse files

ARM: tegra: fix regression from addruart rewrite



Commit 0ea12930 ("arm: return both physical and virtual addresses
from addruart") took out the test for MMU on/off but didn't switch the
ldr instructions to no longer be conditionals based on said test.

Fix that.

Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
Acked-by: default avatarColin Cross <ccross@android.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 7787d2c2
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -21,8 +21,8 @@
#include <mach/io.h>
#include <mach/io.h>


	.macro  addruart, rp, rv
	.macro  addruart, rp, rv
        ldreq   \rp, =IO_APB_PHYS       @ physical
        ldr     \rp, =IO_APB_PHYS       @ physical
        ldrne   \rv, =IO_APB_VIRT        @ virtual
        ldr     \rv, =IO_APB_VIRT        @ virtual
#if defined(CONFIG_TEGRA_DEBUG_UART_NONE)
#if defined(CONFIG_TEGRA_DEBUG_UART_NONE)
#error "A debug UART must be selected in the kernel config to use DEBUG_LL"
#error "A debug UART must be selected in the kernel config to use DEBUG_LL"
#elif defined(CONFIG_TEGRA_DEBUG_UARTA)
#elif defined(CONFIG_TEGRA_DEBUG_UARTA)