]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/arm/cpu/arm926ejs/orion5x/cpu.c
ARM: prevent misaligned array inits
[karo-tx-uboot.git] / arch / arm / cpu / arm926ejs / orion5x / cpu.c
index c3948d38f081ecf4c5f62b8a53d157d4023c22e2..5a4775ab6ff8d651a9b63952e9737333bd14adbd 100644 (file)
@@ -194,8 +194,8 @@ u32 orion5x_device_rev(void)
  */
 int print_cpuinfo(void)
 {
-       char dev_str[] = "0x0000";
-       char rev_str[] = "0x00";
+       char dev_str[7]; /* room enough for 0x0000 plus null byte */
+       char rev_str[5]; /* room enough for 0x00 plus null byte */
        char *dev_name = NULL;
        char *rev_name = NULL;