ar71xx: fix build error in the rb{4xx,750}_nand drivers on 2.6.34/35
[openwrt.git] / target / linux / ar71xx / files / drivers / mtd / nand / rb4xx_nand.c
index c252831..a107708 100644 (file)
 #include <linux/delay.h>
 #include <linux/io.h>
 #include <linux/gpio.h>
+#include <linux/slab.h>
 
 #include <asm/mach-ar71xx/ar71xx.h>
 
 #define DRV_NAME        "rb4xx-nand"
-#define DRV_VERSION     "0.1.9"
+#define DRV_VERSION     "0.1.10"
 #define DRV_DESC        "NAND flash driver for RouterBoard 4xx series"
 
 #define USE_FAST_READ  1
@@ -83,6 +84,12 @@ static struct nand_ecclayout rb4xx_nand_ecclayout = {
 };
 
 static struct mtd_partition rb4xx_nand_partitions[] = {
+       {
+               .name   = "booter",
+               .offset = 0,
+               .size   = (256 * 1024),
+               .mask_flags = MTD_WRITEABLE,
+       },
        {
                .name   = "kernel",
                .offset = (256 * 1024),
@@ -93,12 +100,6 @@ static struct mtd_partition rb4xx_nand_partitions[] = {
                .offset = MTDPART_OFS_NXTBLK,
                .size   = MTDPART_SIZ_FULL,
        },
-       {
-               .name   = "booter",
-               .offset = 0,
-               .size   = (256 * 1024),
-               .mask_flags = MTD_WRITEABLE,
-       }
 };
 
 #if USE_FAST_READ
This page took 0.022458 seconds and 4 git commands to generate.