Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.4.1 /drivers/scsi/ibmmca.c

Filename:/drivers/scsi/ibmmca.c
Lines Added:3
Lines Deleted:6
Also changed in: (Previous) 2.4.1-pre12  2.4.0-ac12  2.4.0-ac11  2.4.0  2.4.0-prerelease  2.4.0-test11 
(Following) 2.4.2-ac1  2.4.2-ac2  2.4.2-ac3  2.4.2-ac4  2.4.2-ac5  2.4.2-ac6 

Location
[  2.4.1
  [  drivers
    [  scsi
       o  ibmmca.c

Patch

diff -u --recursive --new-file v2.4.0/linux/drivers/scsi/ibmmca.c linux/drivers/scsi/ibmmca.c
--- v2.4.0/linux/drivers/scsi/ibmmca.c   Thu Jan  4 12:37:14 2001
+++ linux/drivers/scsi/ibmmca.c   Sun Jan 28 16:08:00 2001
@@ -16,6 +16,7 @@
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,0)
 #error "This driver works only with kernel 2.4.0 or higher!"
 #endif
+#include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/types.h>
 #include <linux/ctype.h>
@@ -38,7 +39,7 @@
 #include <linux/config.h>
 
 /* current version of this driver-source: */
-#define IBMMCA_SCSI_DRIVER_VERSION "4.0a"
+#define IBMMCA_SCSI_DRIVER_VERSION "4.0b"
 
 #define IBMLOCK spin_lock_irqsave(&io_request_lock, flags);
 #define IBMUNLOCK spin_unlock_irqrestore(&io_request_lock, flags);
@@ -443,7 +444,6 @@
    (that is kernel version 2.1.x) */
 #if defined(MODULE)
 static char *boot_options = NULL;
-#include <linux/module.h>
 MODULE_PARM(boot_options, "s");
 MODULE_PARM(io_port, "1-" __MODULE_STRING(IM_MAX_HOSTS) "i");
 MODULE_PARM(scsi_id, "1-" __MODULE_STRING(IM_MAX_HOSTS) "i");
@@ -2563,9 +2563,6 @@
 
 __setup("ibmmcascsi=", option_setup);
 
-#ifdef MODULE
-/* Eventually this will go into an include file, but this will be later */
-Scsi_Host_Template driver_template = IBMMCA;
+static Scsi_Host_Template driver_template = IBMMCA;
 
 #include "scsi_module.c"
-#endif


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.