Commit 2a13373c authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds
Browse files

jsm: clean up "serial: jsm: correctly support 4 8 port boards"

Remove unneeded casts.

Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarAlan Cox <>
Signed-off-by: default avatarLinus Torvalds <>
parent a10b32db
...@@ -467,7 +467,7 @@ int __devinit jsm_uart_port_init(struct jsm_board *brd) ...@@ -467,7 +467,7 @@ int __devinit jsm_uart_port_init(struct jsm_board *brd)
printk(KERN_INFO "jsm: linemap is full, added device failed\n"); printk(KERN_INFO "jsm: linemap is full, added device failed\n");
continue; continue;
} else } else
set_bit((int)line, linemap); set_bit(line, linemap);
brd->channels[i]->uart_port.line = line; brd->channels[i]->uart_port.line = line;
if (uart_add_one_port (&jsm_uart_driver, &brd->channels[i]->uart_port)) if (uart_add_one_port (&jsm_uart_driver, &brd->channels[i]->uart_port))
printk(KERN_INFO "jsm: add device failed\n"); printk(KERN_INFO "jsm: add device failed\n");
...@@ -503,7 +503,7 @@ int jsm_remove_uart_port(struct jsm_board *brd) ...@@ -503,7 +503,7 @@ int jsm_remove_uart_port(struct jsm_board *brd)
ch = brd->channels[i]; ch = brd->channels[i];
clear_bit((int)(ch->uart_port.line), linemap); clear_bit(ch->uart_port.line, linemap);
uart_remove_one_port(&jsm_uart_driver, &brd->channels[i]->uart_port); uart_remove_one_port(&jsm_uart_driver, &brd->channels[i]->uart_port);
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment