提交 777a8d92 编写于 作者: X Xiaolei Li 提交者: Boris Brezillon

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: NXiaolei Li <xiaolei.li@mediatek.com>
Signed-off-by: NBoris Brezillon <boris.brezillon@free-electrons.com>
上级 88404312
...@@ -1490,8 +1490,6 @@ static int mtk_nfc_resume(struct device *dev) ...@@ -1490,8 +1490,6 @@ static int mtk_nfc_resume(struct device *dev)
if (ret) if (ret)
return ret; return ret;
mtk_nfc_hw_init(nfc);
/* reset NAND chip if VCC was powered off */ /* reset NAND chip if VCC was powered off */
list_for_each_entry(chip, &nfc->chips, node) { list_for_each_entry(chip, &nfc->chips, node) {
nand = &chip->nand; nand = &chip->nand;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册