aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-tape.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-03-27 07:46:36 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-03-27 07:46:36 -0400
commit3ee38302ffc63da93eb0313053a990bb3466e275 (patch)
treeb8d66e808fd6d55972adc29ce072deaf2483af6c /drivers/ide/ide-tape.c
parent313afea7f25cc6d420179e0b316499c164e3e372 (diff)
ide: remove ->end_request method
* Handle completion of private driver requests explicitly for ide_floppy and ide_tape media in ide_kill_rq(). * Remove no longer needed ->end_request method. There should be no functional changes caused by this patch. Acked-by: Borislav Petkov <petkovbb@gmail.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-tape.c')
-rw-r--r--drivers/ide/ide-tape.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c
index 35469f3069a2..fc61bbef3bb9 100644
--- a/drivers/ide/ide-tape.c
+++ b/drivers/ide/ide-tape.c
@@ -461,22 +461,6 @@ static void ide_tape_kfree_buffer(idetape_tape_t *tape)
461 } 461 }
462} 462}
463 463
464static int idetape_end_request(ide_drive_t *drive, int uptodate, int nr_sects)
465{
466 struct request *rq = drive->hwif->rq;
467
468 debug_log(DBG_PROCS, "Enter %s\n", __func__);
469
470 rq->errors = uptodate ? 0 : IDE_DRV_ERROR_GENERAL;
471
472 if (uptodate == 0)
473 drive->failed_pc = NULL;
474
475 ide_complete_rq(drive, 0);
476
477 return 0;
478}
479
480static void ide_tape_handle_dsc(ide_drive_t *); 464static void ide_tape_handle_dsc(ide_drive_t *);
481 465
482static void ide_tape_callback(ide_drive_t *drive, int dsc) 466static void ide_tape_callback(ide_drive_t *drive, int dsc)
@@ -2306,7 +2290,6 @@ static struct ide_driver idetape_driver = {
2306 .remove = ide_tape_remove, 2290 .remove = ide_tape_remove,
2307 .version = IDETAPE_VERSION, 2291 .version = IDETAPE_VERSION,
2308 .do_request = idetape_do_request, 2292 .do_request = idetape_do_request,
2309 .end_request = idetape_end_request,
2310#ifdef CONFIG_IDE_PROC_FS 2293#ifdef CONFIG_IDE_PROC_FS
2311 .proc_entries = ide_tape_proc_entries, 2294 .proc_entries = ide_tape_proc_entries,
2312 .proc_devsets = ide_tape_proc_devsets, 2295 .proc_devsets = ide_tape_proc_devsets,