Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 94953
b: refs/heads/master
c: 681587c
h: refs/heads/master
i:
  94951: 923e69d
v: v3
  • Loading branch information
Roel Kluin authored and Russell King committed Apr 28, 2008
1 parent 2926765 commit d85d20b
Show file tree
Hide file tree
Showing 2 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: 62783679540fbdfd74e10fbe9478d978141ba45f
refs/heads/master: 681587c58639444215a7c88f7471819997d2f226
7 changes: 5 additions & 2 deletions trunk/drivers/serial/s3c2410.c
Original file line number Diff line number Diff line change
Expand Up @@ -1022,6 +1022,7 @@ static int s3c24xx_serial_init_port(struct s3c24xx_uart_port *ourport,
struct uart_port *port = &ourport->port;
struct s3c2410_uartcfg *cfg;
struct resource *res;
int ret;

dbg("s3c24xx_serial_init_port: port=%p, platdev=%p\n", port, platdev);

Expand Down Expand Up @@ -1064,9 +1065,11 @@ static int s3c24xx_serial_init_port(struct s3c24xx_uart_port *ourport,

port->mapbase = res->start;
port->membase = S3C24XX_VA_UART + (res->start - S3C24XX_PA_UART);
port->irq = platform_get_irq(platdev, 0);
if (port->irq < 0)
ret = platform_get_irq(platdev, 0);
if (ret < 0)
port->irq = 0;
else
port->irq = ret;

ourport->clk = clk_get(&platdev->dev, "uart");

Expand Down

0 comments on commit d85d20b

Please sign in to comment.