mtd: nand: mtk: remove unneeded mtk_nfc_hw_init from mtk_nfc_resume
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Thu Jul 13 10:59:24 PDT 2017
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=777a8d92dfca26e63b0fe7ea9889618291512f1d
Commit: 777a8d92dfca26e63b0fe7ea9889618291512f1d
Parent: 88404312556c10e4bcd1aeeb75b1b7e9e3226160
Author: Xiaolei Li <xiaolei.li at mediatek.com>
AuthorDate: Fri Jun 23 15:12:26 2017 +0800
Committer: Boris Brezillon <boris.brezillon at free-electrons.com>
CommitDate: Sun Jun 25 16:54:02 2017 +0200
mtd: nand: mtk: remove unneeded mtk_nfc_hw_init from mtk_nfc_resume
chip->select_chip will do nfc runtime configuration. There is no need to
do mtk_nfc_hw_init before it.
Signed-off-by: Xiaolei Li <xiaolei.li at mediatek.com>
Signed-off-by: Boris Brezillon <boris.brezillon at free-electrons.com>
---
drivers/mtd/nand/mtk_nand.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/mtd/nand/mtk_nand.c b/drivers/mtd/nand/mtk_nand.c
index 4d9ee27..d51c58e 100644
--- a/drivers/mtd/nand/mtk_nand.c
+++ b/drivers/mtd/nand/mtk_nand.c
@@ -1490,8 +1490,6 @@ static int mtk_nfc_resume(struct device *dev)
if (ret)
return ret;
- mtk_nfc_hw_init(nfc);
-
/* reset NAND chip if VCC was powered off */
list_for_each_entry(chip, &nfc->chips, node) {
nand = &chip->nand;
More information about the linux-mtd-cvs
mailing list