From: Fabio Estevam Date: Tue, 18 Jul 2017 00:54:08 +0000 (-0300) Subject: mtd: nand: vf610: Remove unneeded pinctrl_pm_select_default_state() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f7b8103ec33e53b73b60551ca7bb8f5350d06d6d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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;