]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: remove CPU_CP15 conditional from alignment.c
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 13 Apr 2014 18:40:12 +0000 (19:40 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 2 Jun 2014 08:20:16 +0000 (09:20 +0100)
alignment.c will not be built unless CPU_CP15 is set:

config CPU_CP15
        bool

config CPU_CP15_MMU
        bool
        select CPU_CP15

config ALIGNMENT_TRAP
        bool
        depends on CPU_CP15_MMU

So there's no point having conditionals on CPU_CP15 within this code.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/alignment.c

index 4cfefa20ee983a76b37256321c9ed495b966add7..054e995d2f5b290dcb903828e15b17b4a1f8e95f 100644 (file)
@@ -974,12 +974,10 @@ static int __init alignment_init(void)
                return -ENOMEM;
 #endif
 
-#ifdef CONFIG_CPU_CP15
        if (cpu_is_v6_unaligned()) {
                set_cr(__clear_cr(CR_A));
                ai_usermode = safe_usermode(ai_usermode, false);
        }
-#endif
 
        hook_fault_code(FAULT_CODE_ALIGNMENT, do_alignment, SIGBUS, BUS_ADRALN,
                        "alignment exception");