From f7b8103ec33e53b73b60551ca7bb8f5350d06d6d Mon Sep 17 00:00:00 2001 From: Fabio Estevam Date: Mon, 17 Jul 2017 21:54:08 -0300 Subject: [PATCH] mtd: nand: vf610: Remove unneeded pinctrl_pm_select_default_state() pinctrl_pm_select_default_state() is already the default pinctrl state and since pinctrl_pm_select_sleep_state() is not used in this driver, there is no need to explicitly call pinctrl_pm_select_default_state(). Signed-off-by: Fabio Estevam Signed-off-by: Boris Brezillon --- drivers/mtd/nand/vf610_nfc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/mtd/nand/vf610_nfc.c b/drivers/mtd/nand/vf610_nfc.c index 9e496727e781..b88a0c91b455 100644 --- a/drivers/mtd/nand/vf610_nfc.c +++ b/drivers/mtd/nand/vf610_nfc.c @@ -34,7 +34,6 @@ #include #include #include -#include #include #include @@ -819,8 +818,6 @@ static int vf610_nfc_resume(struct device *dev) struct mtd_info *mtd = dev_get_drvdata(dev); struct vf610_nfc *nfc = mtd_to_nfc(mtd); - pinctrl_pm_select_default_state(dev); - err = clk_prepare_enable(nfc->clk); if (err) return err; -- GitLab