]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - cpu/arm926ejs/davinci/nand.c
Fixing coding style issues
[people/ms/u-boot.git] / cpu / arm926ejs / davinci / nand.c
index 196fc146b38f8c3ac7b5f2a3b2be2fefa1cbc2d7..6afd4d252e7b05b7e472e50b92fe9cbc86d1dcc8 100644 (file)
@@ -68,7 +68,7 @@ static void nand_davinci_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int c
                this->IO_ADDR_W = (void __iomem *) IO_ADDR_W;
        }
 
-    if (cmd != NAND_CMD_NONE)
+       if (cmd != NAND_CMD_NONE)
                writeb(cmd, this->IO_ADDR_W);
 }
 
@@ -363,22 +363,22 @@ int board_nand_init(struct nand_chip *nand)
 #endif
 #ifdef CFG_NAND_HW_ECC
 #ifdef CFG_NAND_LARGEPAGE
-       nand->ecc.mode     = NAND_ECC_HW;
-    nand->ecc.size = 2048;
-    nand->ecc.bytes = 12;
+       nand->ecc.mode = NAND_ECC_HW;
+       nand->ecc.size = 2048;
+       nand->ecc.bytes = 12;
 #elif defined(CFG_NAND_SMALLPAGE)
-       nand->ecc.mode     = NAND_ECC_HW;
-    nand->ecc.size = 512;
-    nand->ecc.bytes = 3;
+       nand->ecc.mode = NAND_ECC_HW;
+       nand->ecc.size = 512;
+       nand->ecc.bytes = 3;
 #else
 #error "Either CFG_NAND_LARGEPAGE or CFG_NAND_SMALLPAGE must be defined!"
 #endif
-//     nand->autooob     = &davinci_nand_oobinfo;
+/*     nand->autooob     = &davinci_nand_oobinfo; */
        nand->ecc.calculate = nand_davinci_calculate_ecc;
        nand->ecc.correct  = nand_davinci_correct_data;
        nand->ecc.hwctl  = nand_davinci_enable_hwecc;
 #else
-       nand->ecc.mode     = NAND_ECC_SOFT;
+       nand->ecc.mode = NAND_ECC_SOFT;
 #endif
 
        /* Set address of hardware control function */