patch-2.1.18 linux/drivers/isdn/pcbit/module.c

Next file: linux/drivers/isdn/teles/mod.c
Previous file: linux/drivers/isdn/isdn_common.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.17/linux/drivers/isdn/pcbit/module.c linux/drivers/isdn/pcbit/module.c
@@ -1,13 +1,13 @@
 /*
  * Copyright (C) 1996 Universidade de Lisboa
- * 
+ *
  * Written by Pedro Roque Marques (roque@di.fc.ul.pt)
  *
- * This software may be used and distributed according to the terms of 
+ * This software may be used and distributed according to the terms of
  * the GNU Public License, incorporated herein by reference.
  */
 
-/*        
+/*
  *        PCBIT-D module support
  */
 
@@ -35,6 +35,7 @@
 extern int pcbit_init_dev(int board, int mem_base, int irq);
 
 #ifdef MODULE
+EXPORT_NO_SYMBOLS;
 #define pcbit_init init_module
 #endif
 
@@ -44,11 +45,11 @@
 
 	num_boards = 0;
 
-	printk(KERN_INFO 
+	printk(KERN_INFO
 	       "PCBIT-D device driver v 0.5 - "
 	       "Copyright (C) 1996 Universidade de Lisboa\n");
 
-	if (mem[0] || irq[0]) 
+	if (mem[0] || irq[0])
 	{
 		for (board=0; board < MAX_PCBIT_CARDS && mem[board] && irq[board]; board++)
 		{
@@ -56,14 +57,14 @@
 				mem[board] = 0xD0000;
 			if (!irq[board])
 				irq[board] = 5;
-			
+
 			if (pcbit_init_dev(board, mem[board], irq[board]) == 0)
 				num_boards++;
-		
-			else 
+
+			else
 			{
-				printk(KERN_WARNING 
-				       "pcbit_init failed for dev %d", 
+				printk(KERN_WARNING
+				       "pcbit_init failed for dev %d",
 				       board + 1);
 				return -EIO;
 			}
@@ -74,7 +75,7 @@
 
 	if (!num_boards)
 	{
-		printk(KERN_INFO 
+		printk(KERN_INFO
 		       "Trying to detect board using default settings\n");
 		if (pcbit_init_dev(0, 0xD0000, 5) == 0)
 			num_boards++;
@@ -82,9 +83,6 @@
 			return -EIO;
 	}
 
-	/* No symbols to export, hide all symbols */
-	register_symtab(NULL);
-
 	return 0;
 }
 
@@ -95,7 +93,7 @@
 
 	for (board = 0; board < num_boards; board++)
 		pcbit_terminate(board);
-	printk(KERN_INFO 
+	printk(KERN_INFO
 	       "PCBIT-D module unloaded\n");
 }
 
@@ -114,7 +112,7 @@
 			mem[i]	= ints[j];
 			j++; argc--;
 		}
-		
+
 		if (argc) {
 			irq[i]	= ints[j];
 			j++; argc--;
@@ -124,6 +122,3 @@
 	}
 }
 #endif
-
-
-

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov