diff mbox series

[8/9] mmc: jz4740: Convert to pinctrl_select_default_state()

Message ID 20191206170821.29711-9-ulf.hansson@linaro.org
State Accepted
Commit a62ff540559520636e63feb3c9813b0b18920313
Headers show
Series pinctrl: Consolidate some pinctrl code for mmc | expand

Commit Message

Ulf Hansson Dec. 6, 2019, 5:08 p.m. UTC
Let's move away from using pinctrl_pm_select_default_state() as it's
scheduled for removal and use pinctrl_select_default_state() instead.

Cc: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

---
 drivers/mmc/host/jz4740_mmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.17.1

Comments

Paul Cercueil Dec. 7, 2019, 4:28 p.m. UTC | #1
Hi,


Le ven., déc. 6, 2019 at 18:08, Ulf Hansson <ulf.hansson@linaro.org> a 
écrit :
> Let's move away from using pinctrl_pm_select_default_state() as it's

> scheduled for removal and use pinctrl_select_default_state() instead.


Looks good to me,
Acked-by: Paul Cercueil <paul@crapouillou.net>


Cheers,
-Paul

> Cc: Paul Cercueil <paul@crapouillou.net>

> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

> ---

>  drivers/mmc/host/jz4740_mmc.c | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

> 

> diff --git a/drivers/mmc/host/jz4740_mmc.c 

> b/drivers/mmc/host/jz4740_mmc.c

> index 78383f60a3dc..fbae87d1f017 100644

> --- a/drivers/mmc/host/jz4740_mmc.c

> +++ b/drivers/mmc/host/jz4740_mmc.c

> @@ -1108,7 +1108,7 @@ static int jz4740_mmc_suspend(struct device 

> *dev)

> 

>  static int jz4740_mmc_resume(struct device *dev)

>  {

> -	return pinctrl_pm_select_default_state(dev);

> +	return pinctrl_select_default_state(dev);

>  }

> 

>  static SIMPLE_DEV_PM_OPS(jz4740_mmc_pm_ops, jz4740_mmc_suspend,

> --

> 2.17.1

>
Linus Walleij Dec. 8, 2019, 11:56 p.m. UTC | #2
On Fri, Dec 6, 2019 at 6:08 PM Ulf Hansson <ulf.hansson@linaro.org> wrote:

> Let's move away from using pinctrl_pm_select_default_state() as it's

> scheduled for removal and use pinctrl_select_default_state() instead.

>

> Cc: Paul Cercueil <paul@crapouillou.net>

> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>


Acked-by: Linus Walleij <linus.walleij@linaro.org>


Yours,
Linus Walleij
diff mbox series

Patch

diff --git a/drivers/mmc/host/jz4740_mmc.c b/drivers/mmc/host/jz4740_mmc.c
index 78383f60a3dc..fbae87d1f017 100644
--- a/drivers/mmc/host/jz4740_mmc.c
+++ b/drivers/mmc/host/jz4740_mmc.c
@@ -1108,7 +1108,7 @@  static int jz4740_mmc_suspend(struct device *dev)
 
 static int jz4740_mmc_resume(struct device *dev)
 {
-	return pinctrl_pm_select_default_state(dev);
+	return pinctrl_select_default_state(dev);
 }
 
 static SIMPLE_DEV_PM_OPS(jz4740_mmc_pm_ops, jz4740_mmc_suspend,