From: "Дамјан Георгиевски" <damjan@bagra.net.mk>
To: linux-kernel@vger.kernel.org
Cc: trivial@rustcorp.com.au, dahinds@users.sourceforge.net
Subject: Trivial patch for drivers/serial/8250_cs
Date: Mon, 25 Aug 2003 23:27:08 +0200 [thread overview]
Message-ID: <3F4A7F2C.7080205@bagra.net.mk> (raw)
[-- Attachment #1: Type: text/plain, Size: 382 bytes --]
This patch is against 2.6.0-test4.
It fixes the pcmcia serial driver to know its now called 8250_cs and not
serial_cs...
Without this patch 8250_cs compiles but doesn't work.
All the patch does is change several "serial_cs" occurences to "8250_cs".
PS.
another possible sollution is to change everything (including the file
name) from "8250_cs" to "serial_cs" like it is in 2.4
[-- Attachment #2: 8250_cs.patch --]
[-- Type: text/plain, Size: 2624 bytes --]
--- 8250_cs.c~ 2003-08-25 23:13:51.000000000 +0200
+++ 8250_cs.c 2003-08-25 22:45:15.000000000 +0200
@@ -2,7 +2,7 @@
A driver for PCMCIA serial devices
- serial_cs.c 1.134 2002/05/04 05:48:53
+ 8250_cs.c 1.134 2002/05/04 05:48:53
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
@@ -58,7 +58,7 @@
static int pc_debug = PCMCIA_DEBUG;
MODULE_PARM(pc_debug, "i");
#define DEBUG(n, args...) if (pc_debug>(n)) printk(KERN_DEBUG args)
-static char *version = "serial_cs.c 1.134 2002/05/04 05:48:53 (David Hinds)";
+static char *version = "8250_cs.c 1.134 2002/05/04 05:48:53 (David Hinds)";
#else
#define DEBUG(n, args...)
#endif
@@ -116,7 +116,7 @@
static int serial_event(event_t event, int priority,
event_callback_args_t * args);
-static dev_info_t dev_info = "serial_cs";
+static dev_info_t dev_info = "8250_cs";
static dev_link_t *serial_attach(void);
static void serial_detach(dev_link_t *);
@@ -281,7 +281,7 @@
serial.flags |= UPF_BUGGY_UART;
line = register_serial(&serial);
if (line < 0) {
- printk(KERN_NOTICE "serial_cs: register_serial() at 0x%04lx,"
+ printk(KERN_NOTICE "8250_cs: register_serial() at 0x%04lx,"
" irq %d failed\n", (u_long) serial.port, serial.irq);
return -EINVAL;
}
@@ -401,7 +401,7 @@
found_port:
if (i != CS_SUCCESS) {
printk(KERN_NOTICE
- "serial_cs: no usable port range found, giving up\n");
+ "8250_cs: no usable port range found, giving up\n");
cs_error(link->handle, RequestIO, i);
return -1;
}
@@ -497,7 +497,7 @@
i = CardServices(RequestIRQ, link->handle, &link->irq);
if (i != CS_SUCCESS) {
printk(KERN_NOTICE
- "serial_cs: no usable port range found, giving up\n");
+ "8250_cs: no usable port range found, giving up\n");
cs_error(link->handle, RequestIRQ, i);
link->irq.AssignedIRQ = 0;
}
@@ -686,18 +686,18 @@
static struct pcmcia_driver serial_cs_driver = {
.owner = THIS_MODULE,
.drv = {
- .name = "serial_cs",
+ .name = "8250_cs",
},
.attach = serial_attach,
.detach = serial_detach,
};
-static int __init init_serial_cs(void)
+static int __init init_8250_cs(void)
{
return pcmcia_register_driver(&serial_cs_driver);
}
-static void __exit exit_serial_cs(void)
+static void __exit exit_8250_cs(void)
{
pcmcia_unregister_driver(&serial_cs_driver);
@@ -706,7 +706,7 @@
serial_detach(dev_list);
}
-module_init(init_serial_cs);
-module_exit(exit_serial_cs);
+module_init(init_8250_cs);
+module_exit(exit_8250_cs);
MODULE_LICENSE("GPL");
next reply other threads:[~2003-08-25 21:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-25 21:27 Дамјан Георгиевски [this message]
2003-08-25 22:48 ` Trivial patch for drivers/serial/8250_cs David Hinds
2003-08-26 0:15 ` Russell King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3F4A7F2C.7080205@bagra.net.mk \
--to=damjan@bagra.net.mk \
--cc=dahinds@users.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=trivial@rustcorp.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.