[TRIVAL] Runtime linkage fix for serial_cs

From: Takeharu KATO
Date: Sat Sep 03 2005 - 03:49:45 EST


Hi

I found current serial_cs driver can not be loaded into the kernel.
The reason of this issue is serial_cs driver uses serial8250_unregister_port function
which is not exported for modules.
I fixed the issue, please apply this patch.

Signed-off-by: kato.takeharu@xxxxxxxxxxxxxx

diff -NBbur linux.orig/drivers/serial/serial_cs.c linux/drivers/serial/serial_cs.c
--- linux.orig/drivers/serial/serial_cs.c 2005-06-27 15:06:42.000000000 +0900
+++ linux/drivers/serial/serial_cs.c 2005-08-24 00:16:09.297664592 +0900
@@ -139,7 +139,7 @@
*/
if (info->link.state & DEV_CONFIG) {
for (i = 0; i < info->ndev; i++)
- serial8250_unregister_port(info->line[i]);
+ unregister_serial(info->line[i]);

info->link.dev = NULL;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/