]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
zynq: nand: Minor cleanup on zynq_nand.c
authorJagannadha Sutradharudu Teki <jagannadha.sutradharudu-teki@xilinx.com>
Tue, 5 Mar 2013 14:05:06 +0000 (19:35 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 5 Mar 2013 16:02:21 +0000 (17:02 +0100)
- Added few print()
- Removed unneeded nand_info

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/mtd/nand/zynq_nand.c

index 2684090ea763f4dfb6e31e2e064421c9231ec2f0..4897e005b0117faee2900955aa6b171ee0632649 100644 (file)
@@ -322,7 +322,7 @@ static int xnandps_calculate_hwecc(struct mtd_info *mtd, const u8 *data,
                                ecc_code++;
                        }
                } else {
-                       printk(KERN_INFO "pl350: ecc status failed\n");
+                       debug("xnandps_calculate_hwecc: ecc status failed\n");
                }
        }
        return 0;
@@ -1001,7 +1001,6 @@ int zynq_nand_init(struct nand_chip *nand_chip)
 {
        struct xnandps_info *xnand;
        struct mtd_info *mtd;
-       extern struct mtd_info nand_info[];
        unsigned long ecc_page_size;
        int err = -1;
        u8 maf_id, dev_id, i;
@@ -1087,9 +1086,10 @@ int zynq_nand_init(struct nand_chip *nand_chip)
                nand_chip->read_buf(mtd, get_feature, 4);
 
                if (get_feature[0] & 0x08) {
-                       printf("OnDie ECC flash\n");
+                       debug("zynq_nand_init: OnDie ECC flash\n");
                        ondie_ecc_enabled = 1;
-               }
+               } else
+                       printf("zynq_nand_init: Unable to detect OnDie ECC\n");
        }
 
        if (ondie_ecc_enabled) {