From: Greg Kroah-Hartman Date: Thu, 13 Jun 2019 06:10:45 +0000 (+0200) Subject: Revert "serial: stm32: select pinctrl state in each suspend/resume function" X-Git-Tag: v5.4-rc1~601^2~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=da0f843e6e6ff23790e9d97a05dc555ee2e3fa11;p=platform%2Fkernel%2Flinux-rpi.git Revert "serial: stm32: select pinctrl state in each suspend/resume function" This reverts commit c70669ecef4e34af8913108fae4b8a9b1dc63fa1 as it breaks the build. Reported-by: Stephen Rothwell Reported-by: kbuild test robot Cc: Bich Hemon Cc: Erwan Le Ray Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c index 7a46d7b..c6a9293 100644 --- a/drivers/tty/serial/stm32-usart.c +++ b/drivers/tty/serial/stm32-usart.c @@ -1295,8 +1295,6 @@ static int stm32_serial_suspend(struct device *dev) else stm32_serial_enable_wakeup(port, false); - pinctrl_pm_select_sleep_state(dev); - return 0; } @@ -1304,8 +1302,6 @@ static int stm32_serial_resume(struct device *dev) { struct uart_port *port = dev_get_drvdata(dev); - pinctrl_pm_select_default_state(dev); - if (device_may_wakeup(dev)) stm32_serial_enable_wakeup(port, false);