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>
This commit is contained in:
Xiaolei Li 2017-06-23 15:12:27 +08:00 committed by Boris Brezillon
parent 777a8d92df
commit c4ec13543e

View File

@ -507,8 +507,6 @@ static int mtk_ecc_resume(struct device *dev)
return ret;
}
mtk_ecc_hw_init(ecc);
return 0;
}