From: Thomas Gleixner Date: Fri, 26 May 2006 22:47:18 +0000 (+0200) Subject: [MTD] NAND simplify nand_chip_select X-Git-Tag: MMI-PSA29.97-13-9~49475^2~36 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cca3b837bbb4c984165f9f9c7c06846bc0425791;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [MTD] NAND simplify nand_chip_select nCE setting can be done when the first command is issued to the device. We keep the deselect functionality as it makes sense to deassert nCE when the device becomes idle. Signed-off-by: Thomas Gleixner --- diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index bb18476acd7b..0c8da8fab89d 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c @@ -174,8 +174,6 @@ static void nand_select_chip(struct mtd_info *mtd, int chipnr) chip->cmd_ctrl(mtd, NAND_CMD_NONE, 0 | NAND_CTRL_CHANGE); break; case 0: - chip->cmd_ctrl(mtd, NAND_CMD_NONE, - NAND_NCE | NAND_CTRL_CHANGE); break; default: