From: Aristeu Sergio Rozanski Filho <aris@cathedrallabs.org>
To: linux-scsi@vger.kernel.org
Subject: [patch][2/15] qlogic_cs: use a static string as name
Date: Tue, 9 Mar 2004 10:34:23 -0300 [thread overview]
Message-ID: <20040309133423.GD651@cathedrallabs.org> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 17 bytes --]
--
aris
[-- Attachment #1.2: 02-qlogic_cs-use_qlogic_name.patch --]
[-- Type: text/plain, Size: 1223 bytes --]
diff -ur linux-2.6.3-applied/drivers/scsi/pcmcia/qlogic_stub.c linux-2.6.3-work/drivers/scsi/pcmcia/qlogic_stub.c
--- linux-2.6.3-applied/drivers/scsi/pcmcia/qlogic_stub.c 2004-03-05 17:53:13.000000000 -0300
+++ linux-2.6.3-work/drivers/scsi/pcmcia/qlogic_stub.c 2004-03-05 18:36:06.000000000 -0300
@@ -60,6 +60,8 @@
extern struct Scsi_Host *__qlogicfas_detect(Scsi_Host_Template *);
extern int qlogicfas_bus_reset(Scsi_Cmnd *);
+static char *qlogic_name = "qlogic_cs";
+
#ifdef PCMCIA_DEBUG
static int pc_debug = PCMCIA_DEBUG;
MODULE_PARM(pc_debug, "i");
@@ -247,9 +249,11 @@
else
qlogicfas_preset(link->io.BasePort1, link->irq.AssignedIRQ);
+ qlogicfas_driver_template.name = qlogic_name;
+ qlogicfas_driver_template.proc_name = qlogic_name;
host = __qlogicfas_detect(&qlogicfas_driver_template);
if (!host) {
- printk(KERN_INFO "qlogic_cs: no SCSI devices found\n");
+ printk(KERN_INFO "%s: no SCSI devices found\n", qlogic_name);
goto out;
}
@@ -340,7 +344,7 @@
static struct pcmcia_driver qlogic_cs_driver = {
.owner = THIS_MODULE,
.drv = {
- .name = "qlogic_cs",
+ .name = "qlogic_cs",
},
.attach = qlogic_attach,
.detach = qlogic_detach,
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
reply other threads:[~2004-03-09 13:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20040309133423.GD651@cathedrallabs.org \
--to=aris@cathedrallabs.org \
--cc=linux-scsi@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox