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 <fabio.estevam@nxp.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
This commit is contained in:
Fabio Estevam 2017-07-17 21:54:08 -03:00 коммит произвёл Boris Brezillon
Родитель 03fba86b63
Коммит f7b8103ec3
1 изменённых файлов: 0 добавлений и 3 удалений

Просмотреть файл

@ -34,7 +34,6 @@
#include <linux/mtd/nand.h> #include <linux/mtd/nand.h>
#include <linux/mtd/partitions.h> #include <linux/mtd/partitions.h>
#include <linux/of_device.h> #include <linux/of_device.h>
#include <linux/pinctrl/consumer.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/slab.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 mtd_info *mtd = dev_get_drvdata(dev);
struct vf610_nfc *nfc = mtd_to_nfc(mtd); struct vf610_nfc *nfc = mtd_to_nfc(mtd);
pinctrl_pm_select_default_state(dev);
err = clk_prepare_enable(nfc->clk); err = clk_prepare_enable(nfc->clk);
if (err) if (err)
return err; return err;