Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 254134
b: refs/heads/master
c: 470f229
h: refs/heads/master
v: v3
  • Loading branch information
Boojin Kim authored and Greg Kroah-Hartman committed Jun 7, 2011
1 parent a3336da commit 6908d6f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 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: af99d6f0037d970084b03d9690f50e34d6f70dae
refs/heads/master: 470f22975448a65a1084a6f0721fa5df15323f02
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-exynos4/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ void __init exynos4_common_init_uarts(struct s3c2410_uartcfg *cfg, int no)
tcfg->clocks = exynos4_serial_clocks;
tcfg->clocks_size = ARRAY_SIZE(exynos4_serial_clocks);
}
tcfg->flags |= NO_NEED_CHECK_CLKSRC;
}

s3c24xx_init_uartdevs("s5pv210-uart", s5p_uart_resources, cfg, no);
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/arm/plat-samsung/include/plat/regs-serial.h
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@
#define S5PV210_UFSTAT_RXMASK (255<<0)
#define S5PV210_UFSTAT_RXSHIFT (0)

#define NO_NEED_CHECK_CLKSRC 1

#ifndef __ASSEMBLY__

/* struct s3c24xx_uart_clksrc
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/tty/serial/s5pv210.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ static int s5pv210_serial_setsource(struct uart_port *port,
struct s3c2410_uartcfg *cfg = port->dev->platform_data;
unsigned long ucon = rd_regl(port, S3C2410_UCON);

if ((cfg->clocks_size) == 1)
if (cfg->flags & NO_NEED_CHECK_CLKSRC)
return 0;

if (strcmp(clk->name, "pclk") == 0)
Expand All @@ -55,7 +55,7 @@ static int s5pv210_serial_getsource(struct uart_port *port,

clk->divisor = 1;

if ((cfg->clocks_size) == 1)
if (cfg->flags & NO_NEED_CHECK_CLKSRC)
return 0;

switch (ucon & S5PV210_UCON_CLKMASK) {
Expand Down

0 comments on commit 6908d6f

Please sign in to comment.