diff options
Diffstat (limited to 'drivers/serial/s3c2410.c')
| -rw-r--r-- | drivers/serial/s3c2410.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/serial/s3c2410.c b/drivers/serial/s3c2410.c index 52692aa345ec..06a17dff1a73 100644 --- a/drivers/serial/s3c2410.c +++ b/drivers/serial/s3c2410.c | |||
| @@ -1134,23 +1134,22 @@ static int s3c24xx_serial_remove(struct device *_dev) | |||
| 1134 | 1134 | ||
| 1135 | #ifdef CONFIG_PM | 1135 | #ifdef CONFIG_PM |
| 1136 | 1136 | ||
| 1137 | static int s3c24xx_serial_suspend(struct device *dev, pm_message_t state, | 1137 | static int s3c24xx_serial_suspend(struct device *dev, pm_message_t state) |
| 1138 | u32 level) | ||
| 1139 | { | 1138 | { |
| 1140 | struct uart_port *port = s3c24xx_dev_to_port(dev); | 1139 | struct uart_port *port = s3c24xx_dev_to_port(dev); |
| 1141 | 1140 | ||
| 1142 | if (port && level == SUSPEND_DISABLE) | 1141 | if (port) |
| 1143 | uart_suspend_port(&s3c24xx_uart_drv, port); | 1142 | uart_suspend_port(&s3c24xx_uart_drv, port); |
| 1144 | 1143 | ||
| 1145 | return 0; | 1144 | return 0; |
| 1146 | } | 1145 | } |
| 1147 | 1146 | ||
| 1148 | static int s3c24xx_serial_resume(struct device *dev, u32 level) | 1147 | static int s3c24xx_serial_resume(struct device *dev) |
| 1149 | { | 1148 | { |
| 1150 | struct uart_port *port = s3c24xx_dev_to_port(dev); | 1149 | struct uart_port *port = s3c24xx_dev_to_port(dev); |
| 1151 | struct s3c24xx_uart_port *ourport = to_ourport(port); | 1150 | struct s3c24xx_uart_port *ourport = to_ourport(port); |
| 1152 | 1151 | ||
| 1153 | if (port && level == RESUME_ENABLE) { | 1152 | if (port) { |
| 1154 | clk_enable(ourport->clk); | 1153 | clk_enable(ourport->clk); |
| 1155 | s3c24xx_serial_resetport(port, s3c24xx_port_to_cfg(port)); | 1154 | s3c24xx_serial_resetport(port, s3c24xx_port_to_cfg(port)); |
| 1156 | clk_disable(ourport->clk); | 1155 | clk_disable(ourport->clk); |
