Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235534
b: refs/heads/master
c: e96fabd
h: refs/heads/master
v: v3
  • Loading branch information
Tobias Klauser authored and Greg Kroah-Hartman committed Feb 17, 2011
1 parent 9f168ad commit e225437
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: d637837583163a1a70331ce48097f697cac85e32
refs/heads/master: e96fabd8791aad30a3c8a03919893ae3e2e3df25
8 changes: 7 additions & 1 deletion trunk/drivers/tty/serial/altera_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -561,9 +561,15 @@ static int __devinit altera_uart_probe(struct platform_device *pdev)

static int __devexit altera_uart_remove(struct platform_device *pdev)
{
struct uart_port *port = &altera_uart_ports[pdev->id].port;
struct uart_port *port;
int i = pdev->id;

if (i == -1)
i = 0;

port = &altera_uart_ports[i].port;
uart_remove_one_port(&altera_uart_driver, port);

return 0;
}

Expand Down

0 comments on commit e225437

Please sign in to comment.