summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand
diff options
context:
space:
mode:
authorXiaolei Li <xiaolei.li@mediatek.com>2017-06-23 15:12:27 +0800
committerBoris Brezillon <boris.brezillon@free-electrons.com>2017-06-25 16:54:02 +0200
commitc4ec13543e322d4cc68eb6018f5a8a8858d0053a (patch)
tree2df683adeb13f12e70b758517258458fd9a5dc92 /drivers/mtd/nand
parent777a8d92dfca26e63b0fe7ea9889618291512f1d (diff)
downloadlinux-stable-c4ec13543e322d4cc68eb6018f5a8a8858d0053a.tar.gz
linux-stable-c4ec13543e322d4cc68eb6018f5a8a8858d0053a.tar.bz2
linux-stable-c4ec13543e322d4cc68eb6018f5a8a8858d0053a.zip
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@mediatek.com> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r--drivers/mtd/nand/mtk_ecc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mtd/nand/mtk_ecc.c b/drivers/mtd/nand/mtk_ecc.c
index 00ce22e0eaf0..f38e2bb1953e 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;
}