diff options
Diffstat (limited to 'drivers/mtd/devices/doc2000.c')
-rw-r--r-- | drivers/mtd/devices/doc2000.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/drivers/mtd/devices/doc2000.c b/drivers/mtd/devices/doc2000.c index f7fbf6025ef2..e9fad9151219 100644 --- a/drivers/mtd/devices/doc2000.c +++ b/drivers/mtd/devices/doc2000.c | |||
@@ -82,8 +82,7 @@ static int _DoC_WaitReady(struct DiskOnChip *doc) | |||
82 | void __iomem *docptr = doc->virtadr; | 82 | void __iomem *docptr = doc->virtadr; |
83 | unsigned long timeo = jiffies + (HZ * 10); | 83 | unsigned long timeo = jiffies + (HZ * 10); |
84 | 84 | ||
85 | DEBUG(MTD_DEBUG_LEVEL3, | 85 | pr_debug("_DoC_WaitReady called for out-of-line wait\n"); |
86 | "_DoC_WaitReady called for out-of-line wait\n"); | ||
87 | 86 | ||
88 | /* Out-of-line routine to wait for chip response */ | 87 | /* Out-of-line routine to wait for chip response */ |
89 | while (!(ReadDOC(docptr, CDSNControl) & CDSN_CTRL_FR_B)) { | 88 | while (!(ReadDOC(docptr, CDSNControl) & CDSN_CTRL_FR_B)) { |
@@ -92,7 +91,7 @@ static int _DoC_WaitReady(struct DiskOnChip *doc) | |||
92 | DoC_Delay(doc, 2); | 91 | DoC_Delay(doc, 2); |
93 | 92 | ||
94 | if (time_after(jiffies, timeo)) { | 93 | if (time_after(jiffies, timeo)) { |
95 | DEBUG(MTD_DEBUG_LEVEL2, "_DoC_WaitReady timed out.\n"); | 94 | pr_debug("_DoC_WaitReady timed out.\n"); |
96 | return -EIO; | 95 | return -EIO; |
97 | } | 96 | } |
98 | udelay(1); | 97 | udelay(1); |
@@ -323,8 +322,7 @@ static int DoC_IdentChip(struct DiskOnChip *doc, int floor, int chip) | |||
323 | 322 | ||
324 | /* Reset the chip */ | 323 | /* Reset the chip */ |
325 | if (DoC_Command(doc, NAND_CMD_RESET, CDSN_CTRL_WP)) { | 324 | if (DoC_Command(doc, NAND_CMD_RESET, CDSN_CTRL_WP)) { |
326 | DEBUG(MTD_DEBUG_LEVEL2, | 325 | pr_debug("DoC_Command (reset) for %d,%d returned true\n", |
327 | "DoC_Command (reset) for %d,%d returned true\n", | ||
328 | floor, chip); | 326 | floor, chip); |
329 | return 0; | 327 | return 0; |
330 | } | 328 | } |
@@ -332,8 +330,7 @@ static int DoC_IdentChip(struct DiskOnChip *doc, int floor, int chip) | |||
332 | 330 | ||
333 | /* Read the NAND chip ID: 1. Send ReadID command */ | 331 | /* Read the NAND chip ID: 1. Send ReadID command */ |
334 | if (DoC_Command(doc, NAND_CMD_READID, CDSN_CTRL_WP)) { | 332 | if (DoC_Command(doc, NAND_CMD_READID, CDSN_CTRL_WP)) { |
335 | DEBUG(MTD_DEBUG_LEVEL2, | 333 | pr_debug("DoC_Command (ReadID) for %d,%d returned true\n", |
336 | "DoC_Command (ReadID) for %d,%d returned true\n", | ||
337 | floor, chip); | 334 | floor, chip); |
338 | return 0; | 335 | return 0; |
339 | } | 336 | } |
@@ -699,7 +696,7 @@ static int doc_read(struct mtd_info *mtd, loff_t from, size_t len, | |||
699 | #ifdef ECC_DEBUG | 696 | #ifdef ECC_DEBUG |
700 | printk(KERN_ERR "DiskOnChip ECC Error: Read at %lx\n", (long)from); | 697 | printk(KERN_ERR "DiskOnChip ECC Error: Read at %lx\n", (long)from); |
701 | #endif | 698 | #endif |
702 | /* Read the ECC syndrom through the DiskOnChip ECC | 699 | /* Read the ECC syndrome through the DiskOnChip ECC |
703 | logic. These syndrome will be all ZERO when there | 700 | logic. These syndrome will be all ZERO when there |
704 | is no error */ | 701 | is no error */ |
705 | for (i = 0; i < 6; i++) { | 702 | for (i = 0; i < 6; i++) { |
@@ -930,7 +927,7 @@ static int doc_read_oob(struct mtd_info *mtd, loff_t ofs, | |||
930 | uint8_t *buf = ops->oobbuf; | 927 | uint8_t *buf = ops->oobbuf; |
931 | size_t len = ops->len; | 928 | size_t len = ops->len; |
932 | 929 | ||
933 | BUG_ON(ops->mode != MTD_OOB_PLACE); | 930 | BUG_ON(ops->mode != MTD_OPS_PLACE_OOB); |
934 | 931 | ||
935 | ofs += ops->ooboffs; | 932 | ofs += ops->ooboffs; |
936 | 933 | ||
@@ -1094,7 +1091,7 @@ static int doc_write_oob(struct mtd_info *mtd, loff_t ofs, | |||
1094 | struct DiskOnChip *this = mtd->priv; | 1091 | struct DiskOnChip *this = mtd->priv; |
1095 | int ret; | 1092 | int ret; |
1096 | 1093 | ||
1097 | BUG_ON(ops->mode != MTD_OOB_PLACE); | 1094 | BUG_ON(ops->mode != MTD_OPS_PLACE_OOB); |
1098 | 1095 | ||
1099 | mutex_lock(&this->lock); | 1096 | mutex_lock(&this->lock); |
1100 | ret = doc_write_oob_nolock(mtd, ofs + ops->ooboffs, ops->len, | 1097 | ret = doc_write_oob_nolock(mtd, ofs + ops->ooboffs, ops->len, |