]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
m68k: Introduce config option CPU_HAS_NO_UNALIGNED
authorGeert Uytterhoeven <geert@linux-m68k.org>
Wed, 6 Jun 2012 17:37:52 +0000 (19:37 +0200)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 10 Jun 2012 08:18:32 +0000 (10:18 +0200)
Use CONFIG_CPU_HAS_NO_UNALIGNED instead of open coding CONFIG_M68000 ||
CONFIG_COLDFIRE

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Greg Ungerer<gerg@uclinux.org>
arch/m68k/Kconfig.cpu
arch/m68k/include/asm/unaligned.h

index 6cd8c1a32893a036ad3de75e92d007e972fb6c88..c4ed65081475e1406f5d291cea45e3a7c33056bf 100644 (file)
@@ -27,6 +27,7 @@ config COLDFIRE
        select ARCH_HAVE_CUSTOM_GPIO_H
        select CPU_HAS_NO_BITFIELDS
        select CPU_HAS_NO_MULDIV64
+       select CPU_HAS_NO_UNALIGNED
        select GENERIC_CSUM
 
 endchoice
@@ -37,6 +38,7 @@ config M68000
        bool
        select CPU_HAS_NO_BITFIELDS
        select CPU_HAS_NO_MULDIV64
+       select CPU_HAS_NO_UNALIGNED
        select GENERIC_CSUM
        help
          The Freescale (was Motorola) 68000 CPU is the first generation of
@@ -366,6 +368,9 @@ config CPU_HAS_NO_BITFIELDS
 config CPU_HAS_NO_MULDIV64
        bool
 
+config CPU_HAS_NO_UNALIGNED
+       bool
+
 config CPU_HAS_ADDRESS_SPACES
        bool
 
index f4043ae63db1292889957f28cee8d4375d5719e3..2b3ca0bf7a0df900b6442a9611e9da857020c0dc 100644 (file)
@@ -2,7 +2,7 @@
 #define _ASM_M68K_UNALIGNED_H
 
 
-#if defined(CONFIG_COLDFIRE) || defined(CONFIG_M68000)
+#ifdef CONFIG_CPU_HAS_NO_UNALIGNED
 #include <linux/unaligned/be_struct.h>
 #include <linux/unaligned/le_byteshift.h>
 #include <linux/unaligned/generic.h>
@@ -12,7 +12,7 @@
 
 #else
 /*
- * The m68k can do unaligned accesses itself. 
+ * The m68k can do unaligned accesses itself.
  */
 #include <linux/unaligned/access_ok.h>
 #include <linux/unaligned/generic.h>