mtd: nand: mtk: remove unneeded mtk_nfc_hw_init from mtk_nfc_resume
authorXiaolei Li <xiaolei.li@mediatek.com>
Fri, 23 Jun 2017 07:12:26 +0000 (15:12 +0800)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Sun, 25 Jun 2017 14:54:02 +0000 (16:54 +0200)
chip->select_chip will do nfc runtime configuration. There is no need to
do mtk_nfc_hw_init before it.

Signed-off-by: Xiaolei Li <xiaolei.li@mediatek.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/mtk_nand.c

index 4d9ee278b9a07c5b33b4024d2391cedc55c14855..d51c58e618125968084ac849d32dcb3842bf5e5b 100644 (file)
@@ -1490,8 +1490,6 @@ static int mtk_nfc_resume(struct device *dev)
        if (ret)
                return ret;
 
-       mtk_nfc_hw_init(nfc);
-
        /* reset NAND chip if VCC was powered off */
        list_for_each_entry(chip, &nfc->chips, node) {
                nand = &chip->nand;