projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs: Fix compilation errors introduced by cleanup.
[yaffs2.git]
/
yaffs_mtdif.c
diff --git
a/yaffs_mtdif.c
b/yaffs_mtdif.c
index b2d4318e664bad21164a2e163f4a8d9023e84311..b36a8bec42160c7da5a1d8f73ff57c4aaca9e864 100644
(file)
--- a/
yaffs_mtdif.c
+++ b/
yaffs_mtdif.c
@@
-13,7
+13,6
@@
#include "yportenv.h"
#include "yportenv.h"
-
#include "yaffs_mtdif.h"
#include "linux/mtd/mtd.h"
#include "yaffs_mtdif.h"
#include "linux/mtd/mtd.h"
@@
-23,14
+22,13
@@
#include "yaffs_linux.h"
#include "yaffs_linux.h"
-int nandmtd_
EraseBlockInNAND(yaffs_dev_t *dev, int blockNumber
)
+int nandmtd_
erase_block(struct yaffs_dev *dev, int block_no
)
{
struct mtd_info *mtd = yaffs_dev_to_mtd(dev);
{
struct mtd_info *mtd = yaffs_dev_to_mtd(dev);
-
__
u32 addr =
- ((loff_t) block
Number
) * dev->param.total_bytes_per_chunk
-
* dev->param.chunks_per_block;
+ u32 addr =
+ ((loff_t) block
_no
) * dev->param.total_bytes_per_chunk
+ * dev->param.chunks_per_block;
struct erase_info ei;
struct erase_info ei;
-
int retval = 0;
ei.mtd = mtd;
int retval = 0;
ei.mtd = mtd;
@@
-49,8
+47,7
@@
int nandmtd_EraseBlockInNAND(yaffs_dev_t *dev, int blockNumber)
return YAFFS_FAIL;
}
return YAFFS_FAIL;
}
-int nandmtd_
InitialiseNAND(yaffs_dev_t
*dev)
+int nandmtd_
initialise(struct yaffs_dev
*dev)
{
return YAFFS_OK;
}
{
return YAFFS_OK;
}
-