[PATCH] drivers/mtd: fix docg3 write support
Robert Jarzmik
robert.jarzmik at free.fr
Thu Jan 26 14:55:25 EST 2012
Fix typo error in MTD_WRITE defines.
Signed-off-by: Robert Jarzmik <robert.jarzmik at free.fr>
---
This fix applies to branches master and next.
---
drivers/mtd/devices/docg3.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/devices/docg3.c b/drivers/mtd/devices/docg3.c
index f7e33dc..88d707c 100644
--- a/drivers/mtd/devices/docg3.c
+++ b/drivers/mtd/devices/docg3.c
@@ -614,7 +614,7 @@ static int doc_block_isbad(struct mtd_info *mtd, loff_t from)
return !is_good;
}
-#ifdef MTD_WRITE
+#ifdef CONFIG_MTD_WRITE
static int doc_guess_autoecc(struct mtd_oob_ops *ops)
{
int autoecc;
@@ -1065,7 +1065,7 @@ static void __init doc_set_driver_info(int chip_id, struct mtd_info *mtd)
mtd->read = doc_read;
mtd->read_oob = doc_read_oob;
mtd->block_isbad = doc_block_isbad;
-#ifdef MTD_WRITE
+#ifdef CONFIG_MTD_WRITE
mtd->erase = doc_erase;
mtd->write = doc_write;
mtd->write_oob = doc_write_oob;
--
1.7.5.4
More information about the barebox
mailing list