diff options
Diffstat (limited to 'drivers/scsi/st.c')
-rw-r--r-- | drivers/scsi/st.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/drivers/scsi/st.c b/drivers/scsi/st.c index 6e4a36af58c3..13b1d3aac265 100644 --- a/drivers/scsi/st.c +++ b/drivers/scsi/st.c | |||
@@ -194,7 +194,6 @@ static int sgl_unmap_user_pages(struct scatterlist *, const unsigned int, int); | |||
194 | 194 | ||
195 | static int st_probe(struct device *); | 195 | static int st_probe(struct device *); |
196 | static int st_remove(struct device *); | 196 | static int st_remove(struct device *); |
197 | static int st_init_command(struct scsi_cmnd *); | ||
198 | 197 | ||
199 | static void do_create_driverfs_files(void); | 198 | static void do_create_driverfs_files(void); |
200 | static void do_remove_driverfs_files(void); | 199 | static void do_remove_driverfs_files(void); |
@@ -207,7 +206,6 @@ static struct scsi_driver st_template = { | |||
207 | .probe = st_probe, | 206 | .probe = st_probe, |
208 | .remove = st_remove, | 207 | .remove = st_remove, |
209 | }, | 208 | }, |
210 | .init_command = st_init_command, | ||
211 | }; | 209 | }; |
212 | 210 | ||
213 | static int st_compression(struct scsi_tape *, int); | 211 | static int st_compression(struct scsi_tape *, int); |
@@ -4181,29 +4179,6 @@ static void scsi_tape_release(struct kref *kref) | |||
4181 | return; | 4179 | return; |
4182 | } | 4180 | } |
4183 | 4181 | ||
4184 | static void st_intr(struct scsi_cmnd *SCpnt) | ||
4185 | { | ||
4186 | /* | ||
4187 | * The caller should be checking the request's errors | ||
4188 | * value. | ||
4189 | */ | ||
4190 | scsi_io_completion(SCpnt, SCpnt->bufflen, 0); | ||
4191 | } | ||
4192 | |||
4193 | /* | ||
4194 | * st_init_command: only called via the scsi_cmd_ioctl (block SG_IO) | ||
4195 | * interface for REQ_BLOCK_PC commands. | ||
4196 | */ | ||
4197 | static int st_init_command(struct scsi_cmnd *SCpnt) | ||
4198 | { | ||
4199 | if (!(SCpnt->request->flags & REQ_BLOCK_PC)) | ||
4200 | return 0; | ||
4201 | |||
4202 | scsi_setup_blk_pc_cmnd(SCpnt); | ||
4203 | SCpnt->done = st_intr; | ||
4204 | return 1; | ||
4205 | } | ||
4206 | |||
4207 | static int __init init_st(void) | 4182 | static int __init init_st(void) |
4208 | { | 4183 | { |
4209 | validate_options(); | 4184 | validate_options(); |