From: olaf@aepfle.de
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>,
"James E.J. Bottomley" <JBottomley@parallels.com>
Cc: linuxppc-dev@ozlabs.org, Olaf Hering <olaf@aepfle.de>,
linux-scsi@vger.kernel.org
Subject: [PATCH] scsi/ibmvscsi: add module alias for ibmvscsic
Date: Wed, 18 Jul 2012 18:49:18 +0200 [thread overview]
Message-ID: <1342630158-16510-1-git-send-email-olaf@aepfle.de> (raw)
From: Olaf Hering <olaf@aepfle.de>
The driver is named ibmvscsic, at runtime it its name is advertised as
ibmvscsi. For this reason mkinitrd wont pickup the driver properly.
Reported by IBM during SLES11 beta testing:
https://bugzilla.novell.com/show_bug.cgi?id=459933
LTC50724
Signed-off-by: Olaf Hering <olaf@aepfle.de>
diff --git a/drivers/scsi/ibmvscsi/ibmvscsi.c b/drivers/scsi/ibmvscsi/ibmvscsi.c
index 3a6c474..e580aa4 100644
--- a/drivers/scsi/ibmvscsi/ibmvscsi.c
+++ b/drivers/scsi/ibmvscsi/ibmvscsi.c
@@ -100,6 +100,9 @@ static struct scsi_transport_template *ibmvscsi_transport_template;
static struct ibmvscsi_ops *ibmvscsi_ops;
+/* The driver is named ibmvscsic, map ibmvscsi to module name */
+#define IBMVSCSI_NAME "ibmvscsi"
+MODULE_ALIAS(IBMVSCSI_NAME);
MODULE_DESCRIPTION("IBM Virtual SCSI");
MODULE_AUTHOR("Dave Boutcher");
MODULE_LICENSE("GPL");
@@ -1796,7 +1799,7 @@ static struct device_attribute *ibmvscsi_attrs[] = {
static struct scsi_host_template driver_template = {
.module = THIS_MODULE,
.name = "IBM POWER Virtual SCSI Adapter " IBMVSCSI_VERSION,
- .proc_name = "ibmvscsi",
+ .proc_name = IBMVSCSI_NAME,
.queuecommand = ibmvscsi_queuecommand,
.eh_abort_handler = ibmvscsi_eh_abort_handler,
.eh_device_reset_handler = ibmvscsi_eh_device_reset_handler,
@@ -1936,7 +1939,7 @@ static int ibmvscsi_probe(struct vio_dev *vdev, const struct vio_device_id *id)
}
hostdata->work_thread = kthread_run(ibmvscsi_work, hostdata, "%s_%d",
- "ibmvscsi", host->host_no);
+ IBMVSCSI_NAME, host->host_no);
if (IS_ERR(hostdata->work_thread)) {
dev_err(&vdev->dev, "couldn't initialize kthread. rc=%ld\n",
@@ -2061,7 +2064,7 @@ static struct vio_driver ibmvscsi_driver = {
.probe = ibmvscsi_probe,
.remove = ibmvscsi_remove,
.get_desired_dma = ibmvscsi_get_desired_dma,
- .name = "ibmvscsi",
+ .name = IBMVSCSI_NAME,
.pm = &ibmvscsi_pm_ops,
};
--
1.7.10.4
next reply other threads:[~2012-07-18 17:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-18 16:49 olaf [this message]
2012-07-30 1:32 ` [PATCH] scsi/ibmvscsi: add module alias for ibmvscsic Benjamin Herrenschmidt
2012-07-30 19:06 ` Olaf Hering
2012-07-31 3:08 ` Benjamin Herrenschmidt
2012-07-31 16:20 ` Brian King
2012-07-31 17:54 ` Robert Jennings
2012-07-31 17:57 ` Robert Jennings
2012-09-07 16:16 ` Robert Jennings
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=1342630158-16510-1-git-send-email-olaf@aepfle.de \
--to=olaf@aepfle.de \
--cc=JBottomley@parallels.com \
--cc=benh@kernel.crashing.org \
--cc=linux-scsi@vger.kernel.org \
--cc=linuxppc-dev@ozlabs.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;
as well as URLs for NNTP newsgroup(s).