[Yaffs] [YAFFS 03/10] Add missig param to nandmtd1_test_prer…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Waldemar Rymarkiewicz
Date:  
To: yaffs
CC: Waldemar Rymarkiewicz, manningc2
Old-Topics: [Yaffs] [YAFFS 00/10] Add support of v3.2 kernel in single flavour of yaffs
Subject: [Yaffs] [YAFFS 03/10] Add missig param to nandmtd1_test_prerequists
This fixes compilation error as well.

Signed-off-by: Waldemar Rymarkiewicz <>
---
 yaffs_mtdif1_single.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/yaffs_mtdif1_single.c b/yaffs_mtdif1_single.c
index 467a031..8abd6c6 100644
--- a/yaffs_mtdif1_single.c
+++ b/yaffs_mtdif1_single.c
@@ -259,7 +259,7 @@ int nandmtd1_mark_block_bad(struct yaffs_dev *dev, int block_no)
  *
  * Returns YAFFS_OK or YAFFS_FAIL.
  */
-static int nandmtd1_test_prerequists(struct mtd_info *mtd)
+static int nandmtd1_test_prerequists(struct yaffs_dev *dev, struct mtd_info *mtd)
 {
     /* 2.6.18 has mtd->ecclayout->oobavail */
     /* 2.6.21 has mtd->ecclayout->oobavail and mtd->oobavail */
@@ -297,7 +297,7 @@ int nandmtd1_query_block(struct yaffs_dev *dev, int block_no,
     /* We don't yet have a good place to test for MTD config prerequists.
      * Do it here as we are called during the initial scan.
      */
-    if (nandmtd1_test_prerequists(mtd) != YAFFS_OK)
+    if (nandmtd1_test_prerequists(dev, mtd) != YAFFS_OK)
         return YAFFS_FAIL;


     retval = nandmtd1_read_chunk_tags(dev, chunk_num, NULL, &etags);
-- 
1.7.8