mxc nand: remove dead code

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Mon Nov 30 07:59:04 EST 2009


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=a4ad57f8b320c9d89b7693be82e47347425db918
Commit:     a4ad57f8b320c9d89b7693be82e47347425db918
Parent:     624654917476c63287429e005173aa8629c92eac
Author:     Sascha Hauer <s.hauer at pengutronix.de>
AuthorDate: Thu Jun 4 16:12:40 2009 +0200
Committer:  Sascha Hauer <s.hauer at pengutronix.de>
CommitDate: Thu Nov 12 08:32:19 2009 +0100

    mxc nand: remove dead code
    
    Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 drivers/mtd/nand/mxc_nand.c |   17 -----------------
 1 files changed, 0 insertions(+), 17 deletions(-)

diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c
index f981a1f..1ffb854 100644
--- a/drivers/mtd/nand/mxc_nand.c
+++ b/drivers/mtd/nand/mxc_nand.c
@@ -620,23 +620,6 @@ static void mxc_nand_select_chip(struct mtd_info *mtd, int chip)
 	struct nand_chip *nand_chip = mtd->priv;
 	struct mxc_nand_host *host = nand_chip->priv;
 
-#ifdef CONFIG_MTD_NAND_MXC_FORCE_CE
-	if (chip > 0) {
-		DEBUG(MTD_DEBUG_LEVEL0,
-		      "ERROR:  Illegal chip select (chip = %d)\n", chip);
-		return;
-	}
-
-	if (chip == -1) {
-		writew(readw(host->regs + NFC_CONFIG1) & ~NFC_CE,
-				host->regs + NFC_CONFIG1);
-		return;
-	}
-
-	writew(readw(host->regs + NFC_CONFIG1) | NFC_CE,
-			host->regs + NFC_CONFIG1);
-#endif
-
 	switch (chip) {
 	case -1:
 		/* Disable the NFC clock */



More information about the linux-mtd-cvs mailing list