patch-2.1.37 linux/drivers/block/ez.c
Next file: linux/drivers/block/floppy.c
Previous file: linux/drivers/block/ataflop.c
Back to the patch index
Back to the overall index
- Lines: 89
- Date:
Mon May 12 10:35:39 1997
- Orig file:
v2.1.36/linux/drivers/block/ez.c
- Orig date:
Wed Dec 18 05:57:28 1996
diff -u --recursive --new-file v2.1.36/linux/drivers/block/ez.c linux/drivers/block/ez.c
@@ -101,6 +101,7 @@
#include <linux/genhd.h>
#include <linux/hdreg.h>
#include <linux/ioport.h>
+#include <linux/init.h>
#include <asm/system.h>
#include <asm/io.h>
@@ -256,7 +257,7 @@
ez_revalidate /* revalidate new media */
};
-int ez_init (void) /* preliminary initialisation */
+__initfunc(int ez_init (void)) /* preliminary initialisation */
{
if (register_blkdev(MAJOR_NR,"ez",&ez_fops)) {
@@ -271,7 +272,7 @@
return 0;
}
-static void ez_geninit (struct gendisk *ignored) /* real init */
+__initfunc(static void ez_geninit (struct gendisk *ignored)) /* real init */
{ int i;
@@ -507,7 +508,7 @@
syntax: ez=base[,irq[,rep[,nybble]]]
*/
-void ez_setup(char *str, int *ints)
+__initfunc(void ez_setup(char *str, int *ints))
{ if (ints[0] > 0) ez_base = ints[1];
if (ints[0] > 1) ez_irq = ints[2];
@@ -748,7 +749,7 @@
/* ez_media_check: check for and acknowledge the MC flag */
-static void ez_media_check( void )
+__initfunc(static void ez_media_check( void ))
{ int r;
@@ -768,7 +769,7 @@
disconnect();
}
-static int ez_identify( void )
+__initfunc(static int ez_identify( void ))
{ int k, r;
@@ -800,7 +801,7 @@
#define word_val(n) (ez_scratch[2*n]+256*ez_scratch[2*n+1])
-static void ez_get_capacity( void )
+__initfunc(static void ez_get_capacity( void ))
{ int ez_cylinders;
@@ -821,7 +822,7 @@
ez_heads,ez_sectors);
}
-static void ez_standby_off( void )
+__initfunc(static void ez_standby_off( void ))
{ connect();
wait_for(0,NULL);
@@ -830,7 +831,7 @@
disconnect();
}
-static int ez_port_check( void ) /* check for 8-bit port */
+__initfunc(static int ez_port_check( void )) /* check for 8-bit port */
{ int r;
@@ -843,7 +844,7 @@
return 0;
}
-static int ez_detect( void )
+__initfunc(static int ez_detect( void ))
{ int j, k;
char sig[EZ_SIGLEN] = EZ_SIG;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov