[PATCH][BUGFIX] : Megaraid patch for 2.6 1/5

From: Paul Wagland
Date: Thu Feb 19 2004 - 21:08:01 EST


Hi all,

On Linux-SCSI over the last few days I have been discussing a couple of
problems with the 2.6.2 megaraid driver. This patch, originally
submitted by Christoph Hellwig, fixes the problem where the megaraid
driver could be removed, even though it was in use.

patch is attached and below.

diff --recursive --ignore-all-space --unified linux-2.6.2.o/drivers/scsi/megaraid.c linux-2.6.2.megaraid/drivers/scsi/megaraid.c
--- linux-2.6.2.o/drivers/scsi/megaraid.c 2004-02-09 22:56:09.000000000 +0100
+++ linux-2.6.2.megaraid/drivers/scsi/megaraid.c 2004-02-20 01:32:21.000000000 +0100
@@ -4614,6 +4614,7 @@
}

static struct scsi_host_template megaraid_template = {
+ .module = THIS_MODULE,
.name = "MegaRAID",
.proc_name = "megaraid",
.info = megaraid_info,

diff --recursive --ignore-all-space --unified linux-2.6.2.o/drivers/scsi/megaraid.c linux-2.6.2.megaraid/drivers/scsi/megaraid.c
--- linux-2.6.2.o/drivers/scsi/megaraid.c 2004-02-09 22:56:09.000000000 +0100
+++ linux-2.6.2.megaraid/drivers/scsi/megaraid.c 2004-02-20 01:32:21.000000000 +0100
@@ -4614,6 +4614,7 @@
}

static struct scsi_host_template megaraid_template = {
+ .module = THIS_MODULE,
.name = "MegaRAID",
.proc_name = "megaraid",
.info = megaraid_info,