patch-2.3.15 linux/drivers/isdn/pcbit/module.c
Next file: linux/drivers/net/Config.in
Previous file: linux/drivers/isdn/isdn_x25iface.c
Back to the patch index
Back to the overall index
- Lines: 37
- Date:
Wed Aug 25 15:18:08 1999
- Orig file:
v2.3.14/linux/drivers/isdn/pcbit/module.c
- Orig date:
Wed Apr 1 16:21:03 1998
diff -u --recursive --new-file v2.3.14/linux/drivers/isdn/pcbit/module.c linux/drivers/isdn/pcbit/module.c
@@ -102,10 +102,21 @@
}
#else
-void pcbit_setup(char *str, int *ints)
+#ifdef COMPAT_HAS_NEW_SETUP
+#define MAX_PARA (MAX_PCBIT_CARDS * 2)
+#include <linux/init.h>
+int pcbit_setup(char *line)
{
int i, j, argc;
+ char *str;
+ int ints[MAX_PARA+1];
+ str = get_options(line, MAX_PARA, ints);
+#else
+void pcbit_setup(char *str, int *ints)
+{
+ int i, j, argc;
+#endif
argc = ints[0];
i = 0;
j = 1;
@@ -124,7 +135,13 @@
i++;
}
+#ifdef COMPAT_HAS_NEW_SETUP
+ return(1);
+}
+__setup("pcbit=", pcbit_setup);
+#else
}
+#endif
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)