* [TRIVAL] Runtime linkage fix for serial_cs
@ 2005-09-03 8:49 Takeharu KATO
2005-09-03 9:00 ` Russell King
0 siblings, 1 reply; 3+ messages in thread
From: Takeharu KATO @ 2005-09-03 8:49 UTC (permalink / raw)
To: trivial; +Cc: linux-kernel
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@jp.fujitsu.com
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;
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [TRIVAL] Runtime linkage fix for serial_cs
2005-09-03 8:49 [TRIVAL] Runtime linkage fix for serial_cs Takeharu KATO
@ 2005-09-03 9:00 ` Russell King
2005-09-03 16:03 ` Takeharu KATO
0 siblings, 1 reply; 3+ messages in thread
From: Russell King @ 2005-09-03 9:00 UTC (permalink / raw)
To: Takeharu KATO; +Cc: trivial, linux-kernel
On Sat, Sep 03, 2005 at 05:49:23PM +0900, Takeharu KATO wrote:
> 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.
Your kernel sources are buggy. This function is exported.
> I fixed the issue, please apply this patch.
This is not a fix - unregister_serial() must not be used with ports
registered with serial8250_register_port(), and in fact
unregister_serial() no longer exists.
You need to find out why your tree doesn't export
serial8250_unregister_port(). Mis-merged patch maybe?
--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 Serial core
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [TRIVAL] Runtime linkage fix for serial_cs
2005-09-03 9:00 ` Russell King
@ 2005-09-03 16:03 ` Takeharu KATO
0 siblings, 0 replies; 3+ messages in thread
From: Takeharu KATO @ 2005-09-03 16:03 UTC (permalink / raw)
To: Russell King; +Cc: trivial, linux-kernel
Hi
> You need to find out why your tree doesn't export
> serial8250_unregister_port(). Mis-merged patch maybe?
>
Thank you for your response.
I'll check our kernel again.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-09-03 16:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-03 8:49 [TRIVAL] Runtime linkage fix for serial_cs Takeharu KATO
2005-09-03 9:00 ` Russell King
2005-09-03 16:03 ` Takeharu KATO
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox