qubes-linux-kernel/patches.fixes/scsi-ibmvscsi-module_alias.patch
2010-07-07 13:12:45 +02:00

40 lines
1.3 KiB
Diff

Subject: map scsi proc_name to module name
From: olh@suse.de
References: 459933 - LTC50724
Patch-mainline: not yet
---
drivers/scsi/ibmvscsi/ibmvscsi.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
--- a/drivers/scsi/ibmvscsi/ibmvscsi.c
+++ b/drivers/scsi/ibmvscsi/ibmvscsi.c
@@ -106,6 +106,9 @@ static struct scsi_transport_template *i
static struct ibmvscsi_ops *ibmvscsi_ops;
+#define IBMVSCSI_PROC_NAME "ibmvscsi"
+/* The driver is named ibmvscsic, map ibmvscsi to module name */
+MODULE_ALIAS(IBMVSCSI_PROC_NAME);
MODULE_DESCRIPTION("IBM Virtual SCSI");
MODULE_AUTHOR("Dave Boutcher");
MODULE_LICENSE("GPL");
@@ -1841,7 +1844,7 @@ static struct device_attribute *ibmvscsi
static struct scsi_host_template driver_template = {
.module = THIS_MODULE,
.name = "IBM POWER Virtual SCSI Adapter " IBMVSCSI_VERSION,
- .proc_name = "ibmvscsi",
+ .proc_name = IBMVSCSI_PROC_NAME,
.queuecommand = ibmvscsi_queuecommand,
.eh_abort_handler = ibmvscsi_eh_abort_handler,
.eh_device_reset_handler = ibmvscsi_eh_device_reset_handler,
@@ -2026,7 +2029,7 @@ static struct vio_driver ibmvscsi_driver
.remove = ibmvscsi_remove,
.get_desired_dma = ibmvscsi_get_desired_dma,
.driver = {
- .name = "ibmvscsi",
+ .name = IBMVSCSI_PROC_NAME,
.owner = THIS_MODULE,
.pm = &ibmvscsi_pm_ops,
}