mtd: nand: s3c2410_nand_setrate(): use correct macros for 2412/2440
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Fri Jun 5 16:59:01 EDT 2009
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=a755a3858f96ea7e8762ecaac451adfad45321bd
Commit: a755a3858f96ea7e8762ecaac451adfad45321bd
Parent: 31bb999ee73748068ddc271dd99b22dcc418efe3
Author: Peter Korsgaard <jacmet at sunsite.dk>
AuthorDate: Wed Jun 3 13:46:54 2009 +0200
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Fri Jun 5 21:27:05 2009 +0100
mtd: nand: s3c2410_nand_setrate(): use correct macros for 2412/2440
Use the correct S3C2440_NFCONF_* macros for the mask for the 2412/2440
variants instead of the 2410 ones which use wrong bit positions.
Signed-off-by: Peter Korsgaard <jacmet at sunsite.dk>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
drivers/mtd/nand/s3c2410.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c
index 8e375d5..776756e 100644
--- a/drivers/mtd/nand/s3c2410.c
+++ b/drivers/mtd/nand/s3c2410.c
@@ -215,9 +215,9 @@ static int s3c2410_nand_setrate(struct s3c2410_nand_info *info)
case TYPE_S3C2440:
case TYPE_S3C2412:
- mask = (S3C2410_NFCONF_TACLS(tacls_max - 1) |
- S3C2410_NFCONF_TWRPH0(7) |
- S3C2410_NFCONF_TWRPH1(7));
+ mask = (S3C2440_NFCONF_TACLS(tacls_max - 1) |
+ S3C2440_NFCONF_TWRPH0(7) |
+ S3C2440_NFCONF_TWRPH1(7));
set = S3C2440_NFCONF_TACLS(tacls - 1);
set |= S3C2440_NFCONF_TWRPH0(twrph0 - 1);
More information about the linux-mtd-cvs
mailing list