aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nftlcore.c
diff options
context:
space:
mode:
authorFrederik Deweerdt <deweerdt@free.fr>2006-10-02 04:42:25 -0400
committerDavid Woodhouse <dwmw2@infradead.org>2006-10-02 04:42:25 -0400
commit553a8012088b3452c7d66ff60d2d06ad0c9bea00 (patch)
tree3f3b25ad7208f505cf0babb4023035daa7d28907 /drivers/mtd/nftlcore.c
parent9a292308255ad381dd74541be468c4aec240a615 (diff)
[MTD] fix nftl_write warning
Building 2.6.18-mm2 issues the following warning if CONFIG_NFTL_RW is not set: CC [M] drivers/mtd/nftlcore.o drivers/mtd/nftlcore.c:183: warning: 'nftl_write' defined but not used The following patch only compiles nftl_write if CONFIG_NFTL_RW is set. Signed-off-by: Frederik Deweerdt <frederik.deweerdt@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mtd/nftlcore.c')
-rw-r--r--drivers/mtd/nftlcore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nftlcore.c b/drivers/mtd/nftlcore.c
index dd5cea8b4a7..b5a5f8da472 100644
--- a/drivers/mtd/nftlcore.c
+++ b/drivers/mtd/nftlcore.c
@@ -175,6 +175,8 @@ int nftl_write_oob(struct mtd_info *mtd, loff_t offs, size_t len,
175 return res; 175 return res;
176} 176}
177 177
178#ifdef CONFIG_NFTL_RW
179
178/* 180/*
179 * Write data and oob to flash 181 * Write data and oob to flash
180 */ 182 */
@@ -196,8 +198,6 @@ static int nftl_write(struct mtd_info *mtd, loff_t offs, size_t len,
196 return res; 198 return res;
197} 199}
198 200
199#ifdef CONFIG_NFTL_RW
200
201/* Actual NFTL access routines */ 201/* Actual NFTL access routines */
202/* NFTL_findfreeblock: Find a free Erase Unit on the NFTL partition. This function is used 202/* NFTL_findfreeblock: Find a free Erase Unit on the NFTL partition. This function is used
203 * when the give Virtual Unit Chain 203 * when the give Virtual Unit Chain