aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-06-04 10:12:40 -0400
committerSascha Hauer <s.hauer@pengutronix.de>2009-11-12 02:32:19 -0500
commita4ad57f8b320c9d89b7693be82e47347425db918 (patch)
treeaeb6e7a1d00ab7d90ae0ef58dbabf53ccb770bfd
parent624654917476c63287429e005173aa8629c92eac (diff)
mxc nand: remove dead code
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/mtd/nand/mxc_nand.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c
index f981a1f054d6..1ffb854f989e 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)
620 struct nand_chip *nand_chip = mtd->priv; 620 struct nand_chip *nand_chip = mtd->priv;
621 struct mxc_nand_host *host = nand_chip->priv; 621 struct mxc_nand_host *host = nand_chip->priv;
622 622
623#ifdef CONFIG_MTD_NAND_MXC_FORCE_CE
624 if (chip > 0) {
625 DEBUG(MTD_DEBUG_LEVEL0,
626 "ERROR: Illegal chip select (chip = %d)\n", chip);
627 return;
628 }
629
630 if (chip == -1) {
631 writew(readw(host->regs + NFC_CONFIG1) & ~NFC_CE,
632 host->regs + NFC_CONFIG1);
633 return;
634 }
635
636 writew(readw(host->regs + NFC_CONFIG1) | NFC_CE,
637 host->regs + NFC_CONFIG1);
638#endif
639
640 switch (chip) { 623 switch (chip) {
641 case -1: 624 case -1:
642 /* Disable the NFC clock */ 625 /* Disable the NFC clock */