patch-2.4.10 linux/drivers/fc4/socal.c
Next file: linux/drivers/i2c/Config.in
Previous file: linux/drivers/fc4/soc.c
Back to the patch index
Back to the overall index
- Lines: 54
- Date:
Fri Sep 14 14:04:08 2001
- Orig file:
v2.4.9/linux/drivers/fc4/socal.c
- Orig date:
Fri Feb 9 11:30:23 2001
diff -u --recursive --new-file v2.4.9/linux/drivers/fc4/socal.c linux/drivers/fc4/socal.c
@@ -673,14 +673,10 @@
(long)socals, (long)socal_intr, (long)socal_hw_enque))
if (version_printed++ == 0)
printk (version);
-#ifdef MODULE
- s->port[0].fc.module = &__this_module;
- s->port[1].fc.module = &__this_module;
-#else
- s->port[0].fc.module = NULL;
- s->port[1].fc.module = NULL;
-#endif
-
+
+ s->port[0].fc.module = THIS_MODULE;
+ s->port[1].fc.module = THIS_MODULE;
+
s->next = socals;
socals = s;
s->port[0].fc.dev = sdev;
@@ -850,11 +846,7 @@
SOD(("Enabled SOCAL\n"))
}
-#ifndef MODULE
-int __init socal_probe(void)
-#else
-int init_module(void)
-#endif
+static int __init socal_probe(void)
{
struct sbus_bus *sbus;
struct sbus_dev *sdev = 0;
@@ -880,10 +872,7 @@
return 0;
}
-EXPORT_NO_SYMBOLS;
-
-#ifdef MODULE
-void cleanup_module(void)
+static void __exit socal_cleanup(void)
{
struct socal *s;
int irq;
@@ -910,4 +899,8 @@
s->req_cpu, s->req_dvma);
}
}
-#endif
+
+EXPORT_NO_SYMBOLS;
+
+module_init(socal_probe);
+module_exit(socal_cleanup);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)