diff options
| author | Jeff Garzik <jgarzik@pobox.com> | 2005-10-11 01:48:37 -0400 |
|---|---|---|
| committer | Jeff Garzik <jgarzik@pobox.com> | 2005-10-11 01:48:37 -0400 |
| commit | 1a04392bd6439876b1552793389cbb5be356ea54 (patch) | |
| tree | 12af7b77e3b0848127f2d2871778c9c1f315578a /drivers/serial/imx.c | |
| parent | 68399bb5080c1d96f2110b0a040b39d3ccd7a18a (diff) | |
| parent | 3c92c2ba33cd7d666c5f83cc32aa590e794e91b0 (diff) | |
Merge branch 'master'
Diffstat (limited to 'drivers/serial/imx.c')
| -rw-r--r-- | drivers/serial/imx.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/serial/imx.c b/drivers/serial/imx.c index 4e1e80adaf11..53e0323d4b83 100644 --- a/drivers/serial/imx.c +++ b/drivers/serial/imx.c | |||
| @@ -383,11 +383,11 @@ static int imx_startup(struct uart_port *port) | |||
| 383 | */ | 383 | */ |
| 384 | retval = request_irq(sport->rxirq, imx_rxint, 0, | 384 | retval = request_irq(sport->rxirq, imx_rxint, 0, |
| 385 | DRIVER_NAME, sport); | 385 | DRIVER_NAME, sport); |
| 386 | if (retval) goto error_out2; | 386 | if (retval) goto error_out1; |
| 387 | 387 | ||
| 388 | retval = request_irq(sport->txirq, imx_txint, 0, | 388 | retval = request_irq(sport->txirq, imx_txint, 0, |
| 389 | "imx-uart", sport); | 389 | "imx-uart", sport); |
| 390 | if (retval) goto error_out1; | 390 | if (retval) goto error_out2; |
| 391 | 391 | ||
| 392 | /* | 392 | /* |
| 393 | * Finally, clear and enable interrupts | 393 | * Finally, clear and enable interrupts |
| @@ -406,10 +406,9 @@ static int imx_startup(struct uart_port *port) | |||
| 406 | 406 | ||
| 407 | return 0; | 407 | return 0; |
| 408 | 408 | ||
| 409 | error_out1: | ||
| 410 | free_irq(sport->rxirq, sport); | ||
| 411 | error_out2: | 409 | error_out2: |
| 412 | free_irq(sport->txirq, sport); | 410 | free_irq(sport->rxirq, sport); |
| 411 | error_out1: | ||
| 413 | return retval; | 412 | return retval; |
| 414 | } | 413 | } |
| 415 | 414 | ||
