projects
/
yaffs
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add first-cut Linux kernel patch-in mechanism
[yaffs/.git]
/
mtdemul
/
nandemul.c
diff --git
a/mtdemul/nandemul.c
b/mtdemul/nandemul.c
index 52a6a64b62773a5a7156d4fd3910a766e07fcd2f..2bba97f55ba8e30873073374a30b69703cf65d35 100644
(file)
--- a/
mtdemul/nandemul.c
+++ b/
mtdemul/nandemul.c
@@
-638,7
+638,7
@@
static void nand_sync (struct mtd_info *mtd)
/*
* Scan for the NAND device
*/
/*
* Scan for the NAND device
*/
-int nand_scan (struct mtd_info *mtd)
+int nand_scan (struct mtd_info *mtd
,int maxchips
)
{
mtd->oobblock = 512;
mtd->oobsize = 16;
{
mtd->oobblock = 512;
mtd->oobsize = 16;
@@
-650,7
+650,7
@@
int nand_scan (struct mtd_info *mtd)
/* Fill in remaining MTD driver data */
mtd->type = MTD_NANDFLASH;
mtd->flags = MTD_CAP_NANDFLASH;
/* Fill in remaining MTD driver data */
mtd->type = MTD_NANDFLASH;
mtd->flags = MTD_CAP_NANDFLASH;
- mtd->
module
= THIS_MODULE;
+ mtd->
owner
= THIS_MODULE;
mtd->ecctype = MTD_ECC_NONE;
mtd->erase = nand_erase;
mtd->point = NULL;
mtd->ecctype = MTD_ECC_NONE;
mtd->erase = nand_erase;
mtd->point = NULL;
@@
-702,7
+702,7
@@
int __init nandemul_init (void)
// Do the nand init
// Do the nand init
- nand_scan(&nandemul_mtd);
+ nand_scan(&nandemul_mtd
,1
);
nandemul_Initialise();
nandemul_Initialise();