From: Robert Jarzmik <robert.jarzmik@free.fr>
To: barebox@lists.infradead.org
Subject: [PATCH] drivers/mtd: fix docg3 write support
Date: Thu, 26 Jan 2012 20:55:25 +0100 [thread overview]
Message-ID: <1327607728-2788-2-git-send-email-robert.jarzmik@free.fr> (raw)
In-Reply-To: <1327607728-2788-1-git-send-email-robert.jarzmik@free.fr>
Fix typo error in MTD_WRITE defines.
Signed-off-by: Robert Jarzmik <robert.jarzmik@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
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2012-01-26 19:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-26 19:55 [PATCH] drivers/mtd: fix mtdraw " Robert Jarzmik
2012-01-26 19:55 ` Robert Jarzmik [this message]
2012-01-26 19:55 ` [PATCH] arm/mach-pxa: add standard LCD panel GPIO settings Robert Jarzmik
2012-01-26 19:55 ` [PATCH] arm/mach-pxa: add CCCR bits definitions Robert Jarzmik
2012-01-26 19:55 ` [PATCH] arm/mach-pxa: add pulse width modulator controller Robert Jarzmik
2012-01-27 11:42 ` Sascha Hauer
2012-01-27 16:07 ` Robert Jarzmik
2012-01-31 9:37 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1327607728-2788-2-git-send-email-robert.jarzmik@free.fr \
--to=robert.jarzmik@free.fr \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox