[MTD NAND] Fix s3c2410 NAND driver so it at least _looks_ like it compiles
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Fri Jun 9 19:59:02 EDT 2006
Commit: f9068876f5ef583f8e9ebf4acd2ef5b35b113db9
Parent: f24ff6bf8c903bc0c645bf87fbe87f9a6d9f634f
Author: David Woodhouse <dwmw2 at infradead.org>
AuthorDate: Sat Jun 10 00:53:16 2006 +0100
Commit: David Woodhouse <dwmw2 at infradead.org>
CommitDate: Sat Jun 10 00:53:16 2006 +0100
[MTD NAND] Fix s3c2410 NAND driver so it at least _looks_ like it compiles
Fix the control bit handling so it even looks like it might work, too.
Bad tglx. No biscuit.
Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
drivers/mtd/nand/s3c2410.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c
index 8429793..d6365a6 100644
--- a/drivers/mtd/nand/s3c2410.c
+++ b/drivers/mtd/nand/s3c2410.c
@@ -256,7 +256,7 @@ static void s3c2410_nand_select_chip(str
*/
static void s3c2410_nand_hwcontrol(struct mtd_info *mtd, int cmd,
- unsigend int ctrl)
+ unsigned int ctrl)
{
struct s3c2410_nand_info *info = s3c2410_nand_mtd_toinfo(mtd);
struct nand_chip *chip = mtd->priv;
@@ -264,7 +264,7 @@ static void s3c2410_nand_hwcontrol(struc
if (cmd == NAND_CMD_NONE)
return;
- if (cmd & NAND_CLE)
+ if (ctrl & NAND_CLE)
writeb(cmd, info->regs + S3C2410_NFCMD);
else
writeb(cmd, info->regs + S3C2410_NFADDR);
@@ -272,8 +272,8 @@ static void s3c2410_nand_hwcontrol(struc
/* command and control functions */
-static void s3c2410_nand_hwcontrol(struct mtd_info *mtd, int cmd,
- unsigend int ctrl)
+static void s3c2440_nand_hwcontrol(struct mtd_info *mtd, int cmd,
+ unsigned int ctrl)
{
struct s3c2410_nand_info *info = s3c2410_nand_mtd_toinfo(mtd);
struct nand_chip *chip = mtd->priv;
@@ -281,7 +281,7 @@ static void s3c2410_nand_hwcontrol(struc
if (cmd == NAND_CMD_NONE)
return;
- if (cmd & NAND_CLE)
+ if (ctrl & NAND_CLE)
writeb(cmd, info->regs + S3C2440_NFCMD);
else
writeb(cmd, info->regs + S3C2440_NFADDR);
More information about the linux-mtd-cvs
mailing list