mtd: nand: mtk: remove unneeded mtk_ecc_hw_init from mtk_ecc_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=c4ec13543e322d4cc68eb6018f5a8a8858d0053a
Commit: c4ec13543e322d4cc68eb6018f5a8a8858d0053a
Parent: 777a8d92dfca26e63b0fe7ea9889618291512f1d
Author: Xiaolei Li <xiaolei.li at mediatek.com>
AuthorDate: Fri Jun 23 15:12:27 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_ecc_hw_init from mtk_ecc_resume
There is no need to add mtk_ecc_hw_init during ecc resume, because there
always takes mtk_ecc_wait_idle in the function mtk_ecc_enable.
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_ecc.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/mtd/nand/mtk_ecc.c b/drivers/mtd/nand/mtk_ecc.c
index 00ce22e..f38e2bb 100644
--- a/drivers/mtd/nand/mtk_ecc.c
+++ b/drivers/mtd/nand/mtk_ecc.c
@@ -507,8 +507,6 @@ static int mtk_ecc_resume(struct device *dev)
return ret;
}
- mtk_ecc_hw_init(ecc);
-
return 0;
}
More information about the linux-mtd-cvs
mailing list