diff mbox

[v2,2/2] mtd: nand: vf610: Remove unneeded pinctrl_pm_select_default_state()

Message ID 1500339248-18132-2-git-send-email-festevam@gmail.com
State Accepted
Delegated to: Boris Brezillon
Headers show

Commit Message

Fabio Estevam July 18, 2017, 12:54 a.m. UTC
From: Fabio Estevam <fabio.estevam@nxp.com>

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 <fabio.estevam@nxp.com>
---
Changes since v1:
- Newly introduced

 drivers/mtd/nand/vf610_nfc.c | 3 ---
 1 file changed, 3 deletions(-)
diff mbox

Patch

diff --git a/drivers/mtd/nand/vf610_nfc.c b/drivers/mtd/nand/vf610_nfc.c
index 9e49672..b88a0c91 100644
--- a/drivers/mtd/nand/vf610_nfc.c
+++ b/drivers/mtd/nand/vf610_nfc.c
@@ -34,7 +34,6 @@ 
 #include <linux/mtd/nand.h>
 #include <linux/mtd/partitions.h>
 #include <linux/of_device.h>
-#include <linux/pinctrl/consumer.h>
 #include <linux/platform_device.h>
 #include <linux/slab.h>
 
@@ -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;