patch-2.1.37 linux/drivers/block/ataflop.c

Next file: linux/drivers/block/ez.c
Previous file: linux/drivers/block/amiflop.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.36/linux/drivers/block/ataflop.c linux/drivers/block/ataflop.c
@@ -75,6 +75,7 @@
 #include <linux/delay.h>
 #include <linux/mm.h>
 #include <linux/malloc.h>
+#include <linux/init.h>
 
 #include <asm/setup.h>
 #include <asm/system.h>
@@ -1777,7 +1778,7 @@
 
 /* Initialize the 'unit' variable for drive 'drive' */
 
-static void fd_probe( int drive )
+__initfunc(static void fd_probe( int drive ))
 {
 	UD.connected = 0;
 	UDT  = NULL;
@@ -1820,7 +1821,7 @@
  * declared absent.
  */
 
-static int fd_test_drive_present( int drive )
+__initfunc(static int fd_test_drive_present( int drive ))
 {
 	unsigned long timeout;
 	unsigned char status;
@@ -1867,7 +1868,7 @@
  * floppies, additionally start the disk-change and motor-off timers.
  */
 
-static void config_types( void )
+__initfunc(static void config_types( void ))
 {
 	int drive, cnt = 0;
 
@@ -2010,7 +2011,7 @@
 	floppy_revalidate,	/* revalidate */
 };
 
-int atari_floppy_init (void)
+__initfunc(int atari_floppy_init (void))
 {
 	int i;
 
@@ -2070,7 +2071,7 @@
 }
 
 
-void atari_floppy_setup( char *str, int *ints )
+__initfunc(void atari_floppy_setup( char *str, int *ints ))
 {
 	int i;
 	

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