projects
/
yaffs
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8d2f976
)
Changes for more recent kernels
author
charles
<charles>
Tue, 5 Apr 2005 04:08:47 +0000
(
04:08
+0000)
committer
charles
<charles>
Tue, 5 Apr 2005 04:08:47 +0000
(
04:08
+0000)
mtdemul/Makefile
patch
|
blob
|
history
mtdemul/nandemul.c
patch
|
blob
|
history
diff --git
a/mtdemul/Makefile
b/mtdemul/Makefile
index 1817228eeb42ce9bf6e5a06370030f71f9ae62c1..29121e3a796e9539a287e5d2b8b5d20a6b4624b0 100644
(file)
--- a/
mtdemul/Makefile
+++ b/
mtdemul/Makefile
@@
-15,7
+15,7
@@
## Change or override KERNELDIR to your kernel
## comment out USE_xxxx if you don't want these features.
## Change or override KERNELDIR to your kernel
## comment out USE_xxxx if you don't want these features.
-KERNELDIR = /usr/src/kernel-headers-2.4.
18
+KERNELDIR = /usr/src/kernel-headers-2.4.
27
CFLAGS = -D__KERNEL__ -DMODULE -I$(KERNELDIR)/include -O2 -Wall
CFLAGS = -D__KERNEL__ -DMODULE -I$(KERNELDIR)/include -O2 -Wall
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();