From: Fabio Estevam <festevam@gmail.com>
To: boris.brezillon@free-electrons.com
Cc: stefan@agner.ch, linux-mtd@lists.infradead.org,
Fabio Estevam <fabio.estevam@nxp.com>
Subject: [PATCH v2 2/2] mtd: nand: vf610: Remove unneeded pinctrl_pm_select_default_state()
Date: Mon, 17 Jul 2017 21:54:08 -0300 [thread overview]
Message-ID: <1500339248-18132-2-git-send-email-festevam@gmail.com> (raw)
In-Reply-To: <1500339248-18132-1-git-send-email-festevam@gmail.com>
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 --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;
--
2.7.4
next prev parent reply other threads:[~2017-07-18 0:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-18 0:54 [PATCH v2 1/2] mtd: nand: vf610: Check the return value from clk_prepare_enable() Fabio Estevam
2017-07-18 0:54 ` Fabio Estevam [this message]
2017-08-04 8:30 ` Boris Brezillon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1500339248-18132-2-git-send-email-festevam@gmail.com \
--to=festevam@gmail.com \
--cc=boris.brezillon@free-electrons.com \
--cc=fabio.estevam@nxp.com \
--cc=linux-mtd@lists.infradead.org \
--cc=stefan@agner.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox