Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185209
b: refs/heads/master
c: 137ee2f
h: refs/heads/master
i:
  185207: 9dc1a90
v: v3
  • Loading branch information
Breno Leitao authored and Greg Kroah-Hartman committed Mar 2, 2010
1 parent 4abc559 commit d1fd28c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: 54862ee005943d0fdb13d4e54220f234676e05f5
refs/heads/master: 137ee2f5d173a0e859e35bfb900261418eb88ace
9 changes: 6 additions & 3 deletions trunk/drivers/serial/jsm/jsm_tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ int __devinit jsm_tty_init(struct jsm_board *brd)

int jsm_uart_port_init(struct jsm_board *brd)
{
int i;
int i, rc;
unsigned int line;
struct jsm_channel *ch;

Expand Down Expand Up @@ -467,8 +467,11 @@ int jsm_uart_port_init(struct jsm_board *brd)
} else
set_bit(line, linemap);
brd->channels[i]->uart_port.line = line;
if (uart_add_one_port (&jsm_uart_driver, &brd->channels[i]->uart_port))
printk(KERN_INFO "jsm: add device failed\n");
rc = uart_add_one_port (&jsm_uart_driver, &brd->channels[i]->uart_port);
if (rc){
printk(KERN_INFO "jsm: Port %d failed. Aborting...\n", i);
return rc;
}
else
printk(KERN_INFO "jsm: Port %d added\n", i);
}
Expand Down

0 comments on commit d1fd28c

Please sign in to comment.