summaryrefslogtreecommitdiffstats
path: root/drivers/cdrom/sonycd535.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1997-06-01 03:16:17 +0000
committerRalf Baechle <ralf@linux-mips.org>1997-06-01 03:16:17 +0000
commitd8d9b8f76f22b7a16a83e261e64f89ee611f49df (patch)
tree3067bc130b80d52808e6390c9fc7fc087ec1e33c /drivers/cdrom/sonycd535.c
parent19c9bba94152148523ba0f7ef7cffe3d45656b11 (diff)
Initial revision
Diffstat (limited to 'drivers/cdrom/sonycd535.c')
-rw-r--r--drivers/cdrom/sonycd535.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/cdrom/sonycd535.c b/drivers/cdrom/sonycd535.c
index 33b4bd42a..b5c257f9b 100644
--- a/drivers/cdrom/sonycd535.c
+++ b/drivers/cdrom/sonycd535.c
@@ -120,6 +120,7 @@
#include <linux/genhd.h>
#include <linux/mm.h>
#include <linux/malloc.h>
+#include <linux/init.h>
#define REALLY_SLOW_IO
#include <asm/system.h>
@@ -1484,8 +1485,8 @@ static struct file_operations cdu_fops =
/*
* Initialize the driver.
*/
-int
-sony535_init(void)
+__initfunc(int
+sony535_init(void))
{
struct s535_sony_drive_config drive_config;
Byte cmd_buff[3];
@@ -1649,8 +1650,8 @@ sony535_init(void)
*
* the address value has to be the existing CDROM port address.
*/
-void
-sonycd535_setup(char *strings, int *ints)
+__initfunc(void
+sonycd535_setup(char *strings, int *ints))
{
/* if IRQ change and default io base desired,
* then call with io base of 0