]> Pileus Git - ~andy/linux/blobdiff - drivers/mtd/nand/nand_base.c
mtd: change the location of the ONFI detected log
[~andy/linux] / drivers / mtd / nand / nand_base.c
index 5822e3a47ded36ba79c1e30c8ffecf0e13628f6c..1e907dc8638ac0e497e45b07ce2aba0fde83a12f 100644 (file)
@@ -2853,7 +2853,6 @@ static int nand_flash_detect_onfi(struct mtd_info *mtd, struct nand_chip *chip,
                chip->read_byte(mtd) != 'F' || chip->read_byte(mtd) != 'I')
                return 0;
 
-       pr_info("ONFI flash detected\n");
        chip->cmdfunc(mtd, NAND_CMD_PARAM, 0, -1);
        for (i = 0; i < 3; i++) {
                chip->read_buf(mtd, (uint8_t *)p, sizeof(*p));
@@ -2903,6 +2902,7 @@ static int nand_flash_detect_onfi(struct mtd_info *mtd, struct nand_chip *chip,
        chip->options |= (NAND_NO_READRDY |
                        NAND_NO_AUTOINCR) & NAND_CHIPOPTIONS_MSK;
 
+       pr_info("ONFI flash detected\n");
        return 1;
 }