Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185182
b: refs/heads/master
c: 1e09175
h: refs/heads/master
v: v3
  • Loading branch information
Roel Kluin authored and Greg Kroah-Hartman committed Mar 2, 2010
1 parent b5ebd47 commit 5e7eb58
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 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: 2a52fcb54fdf4b557730022aefcc794d567591fb
refs/heads/master: 1e091751cdb2c28f9f25041be0dcb4d33e4a833d
6 changes: 4 additions & 2 deletions trunk/drivers/serial/msm_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,7 @@ static int __init msm_serial_probe(struct platform_device *pdev)
struct msm_port *msm_port;
struct resource *resource;
struct uart_port *port;
int irq;

if (unlikely(pdev->id < 0 || pdev->id >= UART_NR))
return -ENXIO;
Expand All @@ -711,9 +712,10 @@ static int __init msm_serial_probe(struct platform_device *pdev)
return -ENXIO;
port->mapbase = resource->start;

port->irq = platform_get_irq(pdev, 0);
if (unlikely(port->irq < 0))
irq = platform_get_irq(pdev, 0);
if (unlikely(irq < 0))
return -ENXIO;
port->irq = irq;

platform_set_drvdata(pdev, port);

Expand Down
7 changes: 4 additions & 3 deletions trunk/drivers/serial/timbuart.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ static struct uart_driver timbuart_driver = {

static int timbuart_probe(struct platform_device *dev)
{
int err;
int err, irq;
struct timbuart_port *uart;
struct resource *iomem;

Expand Down Expand Up @@ -453,11 +453,12 @@ static int timbuart_probe(struct platform_device *dev)
uart->port.mapbase = iomem->start;
uart->port.membase = NULL;

uart->port.irq = platform_get_irq(dev, 0);
if (uart->port.irq < 0) {
irq = platform_get_irq(dev, 0);
if (irq < 0) {
err = -EINVAL;
goto err_register;
}
uart->port.irq = irq;

tasklet_init(&uart->tasklet, timbuart_tasklet, (unsigned long)uart);

Expand Down

0 comments on commit 5e7eb58

Please sign in to comment.