Commit 777a8d92 authored by Xiaolei Li's avatar Xiaolei Li Committed by 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: default avatarXiaolei Li <xiaolei.li@mediatek.com>
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment