Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9772
b: refs/heads/master
c: 86371d0
h: refs/heads/master
v: v3
  • Loading branch information
Sascha Hauer authored and Russell King committed Oct 10, 2005
1 parent 2736e28 commit f1da654
Show file tree
Hide file tree
Showing 2 changed files with 5 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: ce80cc14810fbd78fa70c15c7e16a0b26d462fc6
refs/heads/master: 86371d071bc38a181984b01d323b6172a4b7bb1f
9 changes: 4 additions & 5 deletions trunk/drivers/serial/imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,11 +383,11 @@ static int imx_startup(struct uart_port *port)
*/
retval = request_irq(sport->rxirq, imx_rxint, 0,
DRIVER_NAME, sport);
if (retval) goto error_out2;
if (retval) goto error_out1;

retval = request_irq(sport->txirq, imx_txint, 0,
"imx-uart", sport);
if (retval) goto error_out1;
if (retval) goto error_out2;

/*
* Finally, clear and enable interrupts
Expand All @@ -406,10 +406,9 @@ static int imx_startup(struct uart_port *port)

return 0;

error_out1:
free_irq(sport->rxirq, sport);
error_out2:
free_irq(sport->txirq, sport);
free_irq(sport->rxirq, sport);
error_out1:
return retval;
}

Expand Down

0 comments on commit f1da654

Please sign in to comment.