Commit 506b73c0 authored by Arjan van de Ven's avatar Arjan van de Ven Committed by Russell King

[SERIAL] Remove dead code.

serial8250_get_irq_map is no longer used anywhere in the kernel (it
used to be used by the isapnp code but isn't anymore) so it's dead
code, below is a patch to remove this.
parent fb9099bd
...@@ -2170,20 +2170,6 @@ int __init early_serial_setup(struct uart_port *port) ...@@ -2170,20 +2170,6 @@ int __init early_serial_setup(struct uart_port *port)
return 0; return 0;
} }
/*
* This is for ISAPNP only.
*/
void serial8250_get_irq_map(unsigned int *map)
{
int i;
for (i = 0; i < UART_NR; i++) {
if (serial8250_ports[i].port.type != PORT_UNKNOWN &&
serial8250_ports[i].port.irq < 16)
*map |= 1 << serial8250_ports[i].port.irq;
}
}
/** /**
* serial8250_suspend_port - suspend one serial port * serial8250_suspend_port - suspend one serial port
* @line: serial line number * @line: serial line number
...@@ -2418,7 +2404,6 @@ static void __exit serial8250_exit(void) ...@@ -2418,7 +2404,6 @@ static void __exit serial8250_exit(void)
module_init(serial8250_init); module_init(serial8250_init);
module_exit(serial8250_exit); module_exit(serial8250_exit);
EXPORT_SYMBOL(serial8250_get_irq_map);
EXPORT_SYMBOL(serial8250_suspend_port); EXPORT_SYMBOL(serial8250_suspend_port);
EXPORT_SYMBOL(serial8250_resume_port); EXPORT_SYMBOL(serial8250_resume_port);
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
int serial8250_register_port(struct uart_port *); int serial8250_register_port(struct uart_port *);
void serial8250_unregister_port(int line); void serial8250_unregister_port(int line);
void serial8250_get_irq_map(unsigned int *map);
void serial8250_suspend_port(int line); void serial8250_suspend_port(int line);
void serial8250_resume_port(int line); void serial8250_resume_port(int line);
......
...@@ -1313,20 +1313,6 @@ void unregister_serial(int line) ...@@ -1313,20 +1313,6 @@ void unregister_serial(int line)
uart_unregister_port(&serial8250_reg, line); uart_unregister_port(&serial8250_reg, line);
} }
/*
* This is for ISAPNP only.
*/
void serial8250_get_irq_map(unsigned int *map)
{
int i;
for (i = 0; i < UART_NR; i++) {
if (serial8250_ports[i].port.type != PORT_UNKNOWN &&
serial8250_ports[i].port.irq < 16)
*map |= 1 << serial8250_ports[i].port.irq;
}
}
/** /**
* serial8250_suspend_port - suspend one serial port * serial8250_suspend_port - suspend one serial port
* @line: serial line number * @line: serial line number
...@@ -1382,7 +1368,6 @@ module_exit(serial8250_exit); ...@@ -1382,7 +1368,6 @@ module_exit(serial8250_exit);
EXPORT_SYMBOL(register_serial); EXPORT_SYMBOL(register_serial);
EXPORT_SYMBOL(unregister_serial); EXPORT_SYMBOL(unregister_serial);
EXPORT_SYMBOL(serial8250_get_irq_map);
EXPORT_SYMBOL(serial8250_suspend_port); EXPORT_SYMBOL(serial8250_suspend_port);
EXPORT_SYMBOL(serial8250_resume_port); EXPORT_SYMBOL(serial8250_resume_port);
......
Markdown is supported
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