[U-Boot,v3,1/4] ARMV7: OMAP3: Fix preprocessor check for CONFIG_OMAP34XX

Submitted by Luca Ceresoli on March 29, 2011, 4:28 p.m.


Message ID 1301416116-5519-2-git-send-email-luca.ceresoli@comelit.it
State Superseded
Delegated to: Sandeep Paulraj
Headers show

Commit Message

Luca Ceresoli March 29, 2011, 4:28 p.m.
CONFIG_OMAP34XX must be checked for existence, not value.

Signed-off-by: Luca Ceresoli <luca.ceresoli@comelit.it>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Albert Aribaud <albert.aribaud@free.fr>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Changes in v2:
 - this patch is new in v2.

Changes in v3: none.

 arch/arm/cpu/armv7/start.S |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch hide | download patch | download mbox

diff --git a/arch/arm/cpu/armv7/start.S b/arch/arm/cpu/armv7/start.S
index d83d501..6387b8b 100644
--- a/arch/arm/cpu/armv7/start.S
+++ b/arch/arm/cpu/armv7/start.S
@@ -115,7 +115,7 @@  reset:
 	orr	r0, r0, #0xd3
 	msr	cpsr,r0
+#if defined(CONFIG_OMAP34XX)
 	/* Copy vectors to mask ROM indirect addr */
 	adr	r0, _start		@ r0 <- current position of code
 	add	r0, r0, #4		@ skip reset vector