Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338356
b: refs/heads/master
c: 9484b00
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Abraham authored and Greg Kroah-Hartman committed Oct 24, 2012
1 parent 136f9be commit 967afcd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b8b345bae8cb6745f2afdd28bb2d93f9cf0d7f2c
refs/heads/master: 9484b009b57b6523a5c7477a899f4438942febde
16 changes: 8 additions & 8 deletions trunk/drivers/tty/serial/samsung.c
Original file line number Diff line number Diff line change
Expand Up @@ -530,16 +530,16 @@ static void s3c24xx_serial_pm(struct uart_port *port, unsigned int level,
switch (level) {
case 3:
if (!IS_ERR(ourport->baudclk))
clk_disable(ourport->baudclk);
clk_disable_unprepare(ourport->baudclk);

clk_disable(ourport->clk);
clk_disable_unprepare(ourport->clk);
break;

case 0:
clk_enable(ourport->clk);
clk_prepare_enable(ourport->clk);

if (!IS_ERR(ourport->baudclk))
clk_enable(ourport->baudclk);
clk_prepare_enable(ourport->baudclk);

break;
default:
Expand Down Expand Up @@ -713,11 +713,11 @@ static void s3c24xx_serial_set_termios(struct uart_port *port,
s3c24xx_serial_setsource(port, clk_sel);

if (!IS_ERR(ourport->baudclk)) {
clk_disable(ourport->baudclk);
clk_disable_unprepare(ourport->baudclk);
ourport->baudclk = ERR_PTR(-EINVAL);
}

clk_enable(clk);
clk_prepare_enable(clk);

ourport->baudclk = clk;
ourport->baudclk_rate = clk ? clk_get_rate(clk) : 0;
Expand Down Expand Up @@ -1287,9 +1287,9 @@ static int s3c24xx_serial_resume(struct device *dev)
struct s3c24xx_uart_port *ourport = to_ourport(port);

if (port) {
clk_enable(ourport->clk);
clk_prepare_enable(ourport->clk);
s3c24xx_serial_resetport(port, s3c24xx_port_to_cfg(port));
clk_disable(ourport->clk);
clk_disable_unprepare(ourport->clk);

uart_resume_port(&s3c24xx_uart_drv, port);
}
Expand Down

0 comments on commit 967afcd

Please sign in to comment.