patch-1.3.33 linux/drivers/block/cdu31a.c
Next file: linux/drivers/block/cm206.c
Previous file: linux/drivers/block/blk.h
Back to the patch index
Back to the overall index
- Lines: 49
- Date:
Tue Oct 10 11:11:36 1995
- Orig file:
v1.3.32/linux/drivers/block/cdu31a.c
- Orig date:
Mon Sep 18 14:53:49 1995
diff -u --recursive --new-file v1.3.32/linux/drivers/block/cdu31a.c linux/drivers/block/cdu31a.c
@@ -2918,13 +2918,12 @@
/*
* Initialize the driver.
*/
-#ifndef MODULE
-unsigned long
-cdu31a_init(unsigned long mem_start, unsigned long mem_end)
-#else
-int
-init_module(void)
+#ifdef MODULE
+#define cdu31a_init init_module
#endif
+
+int
+cdu31a_init(void)
{
struct s_sony_drive_config drive_config;
unsigned int res_size;
@@ -3000,11 +2999,7 @@
if (register_blkdev(MAJOR_NR,"cdu31a",&scd_fops))
{
printk("Unable to get major %d for CDU-31a\n", MAJOR_NR);
-#ifdef MODULE
return -EIO;
-#else
- return mem_start;
-#endif
}
if (SONY_HWC_DOUBLE_SPEED(drive_config))
@@ -3078,7 +3073,6 @@
disk_changed = 1;
-#ifdef MODULE
if (drive_found)
{
return(0);
@@ -3087,9 +3081,6 @@
{
return -EIO;
}
-#else
- return mem_start;
-#endif
}
#ifdef MODULE
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this