aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-floppy.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-floppy.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-floppy.c')
-rw-r--r--drivers/ide/ide-floppy.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c
index bdd8f8e2df6d..ab870a08d62b 100644
--- a/drivers/ide/ide-floppy.c
+++ b/drivers/ide/ide-floppy.c
@@ -61,25 +61,6 @@
61 */ 61 */
62#define IDEFLOPPY_PC_DELAY (HZ/20) /* default delay for ZIP 100 (50ms) */ 62#define IDEFLOPPY_PC_DELAY (HZ/20) /* default delay for ZIP 100 (50ms) */
63 63
64/*
65 * Used to finish servicing a private request.
66 */
67static int ide_floppy_end_request(ide_drive_t *drive, int uptodate, int nsecs)
68{
69 struct request *rq = drive->hwif->rq;
70
71 ide_debug_log(IDE_DBG_FUNC, "enter");
72
73 if (uptodate == 0)
74 drive->failed_pc = NULL;
75
76 rq->errors = uptodate ? 0 : IDE_DRV_ERROR_GENERAL;
77
78 ide_complete_rq(drive, 0);
79
80 return 0;
81}
82
83static void idefloppy_update_buffers(ide_drive_t *drive, 64static void idefloppy_update_buffers(ide_drive_t *drive,
84 struct ide_atapi_pc *pc) 65 struct ide_atapi_pc *pc)
85{ 66{
@@ -560,6 +541,5 @@ const struct ide_disk_ops ide_atapi_disk_ops = {
560 .init_media = ide_floppy_init_media, 541 .init_media = ide_floppy_init_media,
561 .set_doorlock = ide_set_media_lock, 542 .set_doorlock = ide_set_media_lock,
562 .do_request = ide_floppy_do_request, 543 .do_request = ide_floppy_do_request,
563 .end_request = ide_floppy_end_request,
564 .ioctl = ide_floppy_ioctl, 544 .ioctl = ide_floppy_ioctl,
565}; 545};