patch-2.1.37 linux/drivers/cdrom/cm206.c
Next file: linux/drivers/cdrom/gscd.c
Previous file: linux/drivers/cdrom/cdu31a.c
Back to the patch index
Back to the overall index
- Lines: 53
- Date:
Mon May 12 10:35:39 1997
- Orig file:
v2.1.36/linux/drivers/cdrom/cm206.c
- Orig date:
Fri Dec 27 02:03:20 1996
diff -u --recursive --new-file v2.1.36/linux/drivers/cdrom/cm206.c linux/drivers/cdrom/cm206.c
@@ -138,6 +138,7 @@
#include <linux/ioport.h>
#include <linux/mm.h>
#include <linux/malloc.h>
+#include <linux/init.h>
#include <linux/ucdrom.h>
@@ -1186,7 +1187,7 @@
check_region, 15 bits of one port and 6 of another make things
likely enough to accept the region on the first hit...
*/
-int probe_base_port(int base)
+__initfunc(int probe_base_port(int base))
{
int b=0x300, e=0x370; /* this is the range of start addresses */
volatile int fool, i;
@@ -1206,7 +1207,7 @@
#if !defined(MODULE) || defined(AUTO_PROBE_MODULE)
/* Probe for irq# nr. If nr==0, probe for all possible irq's. */
-int probe_irq(int nr) {
+__initfunc(int probe_irq(int nr)) {
int irqs, irq;
outw(dc_normal | READ_AHEAD, r_data_control); /* disable irq-generation */
sti();
@@ -1220,7 +1221,7 @@
}
#endif
-int cm206_init(void)
+__initfunc(int cm206_init(void))
{
uch e=0;
long int size=sizeof(struct cm206_struct);
@@ -1303,7 +1304,7 @@
static int cm206[2] = {0,0}; /* for compatible `insmod' parameter passing */
-void parse_options(void)
+__initfunc(void parse_options(void))
{
int i;
for (i=0; i<2; i++) {
@@ -1337,7 +1338,7 @@
/* This setup function accepts either `auto' or numbers in the range
* 3--11 (for irq) or 0x300--0x370 (for base port) or both. */
-void cm206_setup(char *s, int *p)
+__initfunc(void cm206_setup(char *s, int *p))
{
int i;
if (!strcmp(s, "auto")) auto_probe=1;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov