[MTD NAND] S3C2410 driver cleanup
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Mon Jun 19 04:59:02 EDT 2006
Commit: ad3b5fb772e6a824f1ac341eb8e392eca6fc524f
Parent: d1fef3c5e16327661be6cb127d68f5be379697a5
commit ad3b5fb772e6a824f1ac341eb8e392eca6fc524f
Author: Ben Dooks <ben-linux at fluff.org>
AuthorDate: Mon Jun 19 09:43:23 2006 +0100
Commit: David Woodhouse <dwmw2 at infradead.org>
CommitDate: Mon Jun 19 09:43:23 2006 +0100
[MTD NAND] S3C2410 driver cleanup
Fix unused variables and commenting since tglx's
new NAND updates
Signed-off-by: Ben Dooks <ben-linux at fluff.org>
Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
drivers/mtd/nand/s3c2410.c | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c
index fd78fb8..2c262fe 100644
--- a/drivers/mtd/nand/s3c2410.c
+++ b/drivers/mtd/nand/s3c2410.c
@@ -268,20 +268,16 @@ static void s3c2410_nand_select_chip(str
clk_disable(info->clk);
}
-/* command and control functions
- *
- * Note, these all use tglx's method of changing the IO_ADDR_W field
- * to make the code simpler, and use the nand layer's code to issue the
- * command and address sequences via the proper IO ports.
+/* s3c2410_nand_hwcontrol
*
+ * Issue command and address cycles to the chip
*/
static void s3c2410_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;
-
+
if (cmd == NAND_CMD_NONE)
return;
@@ -297,7 +293,6 @@ static void s3c2440_nand_hwcontrol(struc
unsigned int ctrl)
{
struct s3c2410_nand_info *info = s3c2410_nand_mtd_toinfo(mtd);
- struct nand_chip *chip = mtd->priv;
if (cmd == NAND_CMD_NONE)
return;
More information about the linux-mtd-cvs
mailing list