Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54368
b: refs/heads/master
c: 005a336
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mundt authored and Paul Mundt committed May 7, 2007
1 parent e81ee8b commit 957053f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1534a3b3dc1cbab006f0add253be1b095d738b82
refs/heads/master: 005a336e71e9e3ea356f9afca5d66318d6901319
11 changes: 11 additions & 0 deletions trunk/drivers/serial/sh-sci.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,10 @@ struct sci_port {
struct timer_list break_timer;
int break_flag;

#if defined(CONFIG_SUPERH) && !defined(CONFIG_SUPERH64)
/* Port clock */
struct clk *clk;
#endif
};

#ifdef CONFIG_SH_KGDB
Expand Down Expand Up @@ -958,7 +960,9 @@ static int sci_startup(struct uart_port *port)
if (s->enable)
s->enable(port);

#if defined(CONFIG_SUPERH) && !defined(CONFIG_SUPERH64)
s->clk = clk_get(NULL, "module_clk");
#endif

sci_request_irq(s);
sci_start_tx(port);
Expand All @@ -978,8 +982,10 @@ static void sci_shutdown(struct uart_port *port)
if (s->disable)
s->disable(port);

#if defined(CONFIG_SUPERH) && !defined(CONFIG_SUPERH64)
clk_put(s->clk);
s->clk = NULL;
#endif
}

static void sci_set_termios(struct uart_port *port, struct ktermios *termios,
Expand Down Expand Up @@ -1231,6 +1237,11 @@ static int __init serial_console_setup(struct console *co, char *options)

port->type = serial_console_port->type;

#if defined(CONFIG_SUPERH) && !defined(CONFIG_SUPERH64)
if (!serial_console_port->clk)
serial_console_port->clk = clk_get(NULL, "module_clk");
#endif

if (port->flags & UPF_IOREMAP)
sci_config_port(port, 0);

Expand Down

0 comments on commit 957053f

Please sign in to comment.