diff options
Diffstat (limited to 'drivers/cdrom')
-rw-r--r-- | drivers/cdrom/cdu31a.c | 6 | ||||
-rw-r--r-- | drivers/cdrom/mcdx.c | 28 | ||||
-rw-r--r-- | drivers/cdrom/sbpcd.c | 2 |
3 files changed, 17 insertions, 19 deletions
diff --git a/drivers/cdrom/cdu31a.c b/drivers/cdrom/cdu31a.c index 647a71b12a2a..ac96de15d833 100644 --- a/drivers/cdrom/cdu31a.c +++ b/drivers/cdrom/cdu31a.c | |||
@@ -292,7 +292,7 @@ module_param(cdu31a_irq, int, 0); | |||
292 | 292 | ||
293 | /* The interrupt handler will wake this queue up when it gets an | 293 | /* The interrupt handler will wake this queue up when it gets an |
294 | interrupts. */ | 294 | interrupts. */ |
295 | DECLARE_WAIT_QUEUE_HEAD(cdu31a_irq_wait); | 295 | static DECLARE_WAIT_QUEUE_HEAD(cdu31a_irq_wait); |
296 | static int irq_flag = 0; | 296 | static int irq_flag = 0; |
297 | 297 | ||
298 | static int curr_control_reg = 0; /* Current value of the control register */ | 298 | static int curr_control_reg = 0; /* Current value of the control register */ |
@@ -2947,7 +2947,7 @@ static int scd_block_media_changed(struct gendisk *disk) | |||
2947 | return cdrom_media_changed(&scd_info); | 2947 | return cdrom_media_changed(&scd_info); |
2948 | } | 2948 | } |
2949 | 2949 | ||
2950 | struct block_device_operations scd_bdops = | 2950 | static struct block_device_operations scd_bdops = |
2951 | { | 2951 | { |
2952 | .owner = THIS_MODULE, | 2952 | .owner = THIS_MODULE, |
2953 | .open = scd_block_open, | 2953 | .open = scd_block_open, |
@@ -3216,7 +3216,7 @@ errout3: | |||
3216 | } | 3216 | } |
3217 | 3217 | ||
3218 | 3218 | ||
3219 | void __exit cdu31a_exit(void) | 3219 | static void __exit cdu31a_exit(void) |
3220 | { | 3220 | { |
3221 | del_gendisk(scd_gendisk); | 3221 | del_gendisk(scd_gendisk); |
3222 | put_disk(scd_gendisk); | 3222 | put_disk(scd_gendisk); |
diff --git a/drivers/cdrom/mcdx.c b/drivers/cdrom/mcdx.c index ccde7ab491d4..07bbd24e3c18 100644 --- a/drivers/cdrom/mcdx.c +++ b/drivers/cdrom/mcdx.c | |||
@@ -107,20 +107,20 @@ static const char *mcdx_c_version | |||
107 | The _direct_ size is the number of sectors we're allowed to skip | 107 | The _direct_ size is the number of sectors we're allowed to skip |
108 | directly (performing a read instead of requesting the new sector | 108 | directly (performing a read instead of requesting the new sector |
109 | needed */ | 109 | needed */ |
110 | const int REQUEST_SIZE = 800; /* should be less then 255 * 4 */ | 110 | static const int REQUEST_SIZE = 800; /* should be less then 255 * 4 */ |
111 | const int DIRECT_SIZE = 400; /* should be less then REQUEST_SIZE */ | 111 | static const int DIRECT_SIZE = 400; /* should be less then REQUEST_SIZE */ |
112 | 112 | ||
113 | enum drivemodes { TOC, DATA, RAW, COOKED }; | 113 | enum drivemodes { TOC, DATA, RAW, COOKED }; |
114 | enum datamodes { MODE0, MODE1, MODE2 }; | 114 | enum datamodes { MODE0, MODE1, MODE2 }; |
115 | enum resetmodes { SOFT, HARD }; | 115 | enum resetmodes { SOFT, HARD }; |
116 | 116 | ||
117 | const int SINGLE = 0x01; /* single speed drive (FX001S, LU) */ | 117 | static const int SINGLE = 0x01; /* single speed drive (FX001S, LU) */ |
118 | const int DOUBLE = 0x02; /* double speed drive (FX001D, ..? */ | 118 | static const int DOUBLE = 0x02; /* double speed drive (FX001D, ..? */ |
119 | const int DOOR = 0x04; /* door locking capability */ | 119 | static const int DOOR = 0x04; /* door locking capability */ |
120 | const int MULTI = 0x08; /* multi session capability */ | 120 | static const int MULTI = 0x08; /* multi session capability */ |
121 | 121 | ||
122 | const unsigned char READ1X = 0xc0; | 122 | static const unsigned char READ1X = 0xc0; |
123 | const unsigned char READ2X = 0xc1; | 123 | static const unsigned char READ2X = 0xc1; |
124 | 124 | ||
125 | 125 | ||
126 | /* DECLARATIONS ****************************************************/ | 126 | /* DECLARATIONS ****************************************************/ |
@@ -210,9 +210,7 @@ struct s_drive_stuff { | |||
210 | repeated here to show what's going on. And to sense, if they're | 210 | repeated here to show what's going on. And to sense, if they're |
211 | changed elsewhere. */ | 211 | changed elsewhere. */ |
212 | 212 | ||
213 | /* declared in blk.h */ | 213 | static int mcdx_init(void); |
214 | int mcdx_init(void); | ||
215 | void do_mcdx_request(request_queue_t * q); | ||
216 | 214 | ||
217 | static int mcdx_block_open(struct inode *inode, struct file *file) | 215 | static int mcdx_block_open(struct inode *inode, struct file *file) |
218 | { | 216 | { |
@@ -569,7 +567,7 @@ static int mcdx_audio_ioctl(struct cdrom_device_info *cdi, | |||
569 | } | 567 | } |
570 | } | 568 | } |
571 | 569 | ||
572 | void do_mcdx_request(request_queue_t * q) | 570 | static void do_mcdx_request(request_queue_t * q) |
573 | { | 571 | { |
574 | struct s_drive_stuff *stuffp; | 572 | struct s_drive_stuff *stuffp; |
575 | struct request *req; | 573 | struct request *req; |
@@ -1028,7 +1026,7 @@ int __mcdx_init(void) | |||
1028 | return 0; | 1026 | return 0; |
1029 | } | 1027 | } |
1030 | 1028 | ||
1031 | void __exit mcdx_exit(void) | 1029 | static void __exit mcdx_exit(void) |
1032 | { | 1030 | { |
1033 | int i; | 1031 | int i; |
1034 | 1032 | ||
@@ -1075,7 +1073,7 @@ module_exit(mcdx_exit); | |||
1075 | 1073 | ||
1076 | /* Support functions ************************************************/ | 1074 | /* Support functions ************************************************/ |
1077 | 1075 | ||
1078 | int __init mcdx_init_drive(int drive) | 1076 | static int __init mcdx_init_drive(int drive) |
1079 | { | 1077 | { |
1080 | struct s_version version; | 1078 | struct s_version version; |
1081 | struct gendisk *disk; | 1079 | struct gendisk *disk; |
@@ -1261,7 +1259,7 @@ int __init mcdx_init_drive(int drive) | |||
1261 | return 0; | 1259 | return 0; |
1262 | } | 1260 | } |
1263 | 1261 | ||
1264 | int __init mcdx_init(void) | 1262 | static int __init mcdx_init(void) |
1265 | { | 1263 | { |
1266 | int drive; | 1264 | int drive; |
1267 | xwarn("Version 2.14(hs) \n"); | 1265 | xwarn("Version 2.14(hs) \n"); |
diff --git a/drivers/cdrom/sbpcd.c b/drivers/cdrom/sbpcd.c index fc2c433f6a29..452d34675159 100644 --- a/drivers/cdrom/sbpcd.c +++ b/drivers/cdrom/sbpcd.c | |||
@@ -5895,7 +5895,7 @@ int __init sbpcd_init(void) | |||
5895 | } | 5895 | } |
5896 | /*==========================================================================*/ | 5896 | /*==========================================================================*/ |
5897 | #ifdef MODULE | 5897 | #ifdef MODULE |
5898 | void sbpcd_exit(void) | 5898 | static void sbpcd_exit(void) |
5899 | { | 5899 | { |
5900 | int j; | 5900 | int j; |
5901 | 5901 | ||