Onenand: Add alignment for memcpy32
authorJoonyoung Shim <jy0922.shim@samsung.com>
Thu, 14 Jan 2010 06:46:31 +0000 (15:46 +0900)
committerJoonyoung Shim <jy0922.shim@samsung.com>
Thu, 14 Jan 2010 06:46:31 +0000 (15:46 +0900)
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
drivers/mtd/onenand/onenand_base.c

index da0858e..8209582 100644 (file)
@@ -96,7 +96,7 @@ static struct nand_ecclayout onenand_oob_32 = {
        .oobfree        = { {2, 3}, {14, 2}, {18, 3}, {30, 2} }
 };
 
-static const unsigned char ffchars[] = {
+static const unsigned char ffchars[] __attribute__((aligned(4))) = {
        0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
        0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* 16 */
        0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,