Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97881
b: refs/heads/master
c: 3b8458a
h: refs/heads/master
i:
  97879: 2791dd6
v: v3
  • Loading branch information
Graf Yang authored and Bryan Wu committed Jun 7, 2008
1 parent fb3677c commit da22030
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 5bda27235b24146cf870de663141ee4fbfa8a70b
refs/heads/master: 3b8458a9793a92a6ca3cb24e309f19821bf0d8e5
10 changes: 5 additions & 5 deletions trunk/drivers/serial/bfin_5xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -813,15 +813,15 @@ bfin_serial_verify_port(struct uart_port *port, struct serial_struct *ser)
* Enable the IrDA function if tty->ldisc.num is N_IRDA.
* In other cases, disable IrDA function.
*/
static void bfin_set_ldisc(struct tty_struct *tty)
static void bfin_serial_set_ldisc(struct uart_port *port)
{
int line = tty->index;
int line = port->line;
unsigned short val;

if (line >= tty->driver->num)
if (line >= port->info->tty->driver->num)
return;

switch (tty->ldisc.num) {
switch (port->info->tty->ldisc.num) {
case N_IRDA:
val = UART_GET_GCTL(&bfin_serial_ports[line]);
val |= (IREN | RPOLC);
Expand All @@ -846,6 +846,7 @@ static struct uart_ops bfin_serial_pops = {
.startup = bfin_serial_startup,
.shutdown = bfin_serial_shutdown,
.set_termios = bfin_serial_set_termios,
.set_ldisc = bfin_serial_set_ldisc,
.type = bfin_serial_type,
.release_port = bfin_serial_release_port,
.request_port = bfin_serial_request_port,
Expand Down Expand Up @@ -1186,7 +1187,6 @@ static int __init bfin_serial_init(void)

ret = uart_register_driver(&bfin_serial_reg);
if (ret == 0) {
bfin_serial_reg.tty_driver->set_ldisc = bfin_set_ldisc;
ret = platform_driver_register(&bfin_serial_driver);
if (ret) {
pr_debug("uart register failed\n");
Expand Down

0 comments on commit da22030

Please sign in to comment.