diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-15 15:21:56 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-15 15:21:56 -0400 |
commit | 1b06e92aa03018e4b3ba281e03a7711d9b71a998 (patch) | |
tree | 636b1d90f44270253f3834684b85e902f638a21a /drivers/ide | |
parent | 81f4938239fea86d0a7529194a37fb81041171e0 (diff) |
ide-{floppy,tape}: merge pc->idefloppy_callback and pc->idetape_callback
Merge pc->idefloppy_callback and pc->idetape_callback into pc->callback.
There should be no functional changes caused by this patch.
Cc: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide')
-rw-r--r-- | drivers/ide/ide-floppy.c | 6 | ||||
-rw-r--r-- | drivers/ide/ide-tape.c | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c index 2058a6f3f331..a9f3127a74ed 100644 --- a/drivers/ide/ide-floppy.c +++ b/drivers/ide/ide-floppy.c | |||
@@ -354,7 +354,7 @@ static void idefloppy_init_pc(struct ide_atapi_pc *pc) | |||
354 | pc->req_xfer = 0; | 354 | pc->req_xfer = 0; |
355 | pc->buf = pc->pc_buf; | 355 | pc->buf = pc->pc_buf; |
356 | pc->buf_size = IDEFLOPPY_PC_BUFFER_SIZE; | 356 | pc->buf_size = IDEFLOPPY_PC_BUFFER_SIZE; |
357 | pc->idefloppy_callback = &ide_floppy_callback; | 357 | pc->callback = ide_floppy_callback; |
358 | } | 358 | } |
359 | 359 | ||
360 | static void idefloppy_create_request_sense_cmd(struct ide_atapi_pc *pc) | 360 | static void idefloppy_create_request_sense_cmd(struct ide_atapi_pc *pc) |
@@ -438,7 +438,7 @@ static ide_startstop_t idefloppy_pc_intr(ide_drive_t *drive) | |||
438 | if (floppy->failed_pc == pc) | 438 | if (floppy->failed_pc == pc) |
439 | floppy->failed_pc = NULL; | 439 | floppy->failed_pc = NULL; |
440 | /* Command finished - Call the callback function */ | 440 | /* Command finished - Call the callback function */ |
441 | pc->idefloppy_callback(drive); | 441 | pc->callback(drive); |
442 | return ide_stopped; | 442 | return ide_stopped; |
443 | } | 443 | } |
444 | 444 | ||
@@ -612,7 +612,7 @@ static ide_startstop_t idefloppy_issue_pc(ide_drive_t *drive, | |||
612 | pc->error = IDEFLOPPY_ERROR_GENERAL; | 612 | pc->error = IDEFLOPPY_ERROR_GENERAL; |
613 | 613 | ||
614 | floppy->failed_pc = NULL; | 614 | floppy->failed_pc = NULL; |
615 | pc->idefloppy_callback(drive); | 615 | pc->callback(drive); |
616 | return ide_stopped; | 616 | return ide_stopped; |
617 | } | 617 | } |
618 | 618 | ||
diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c index 88d26efdf844..ce9b6d327528 100644 --- a/drivers/ide/ide-tape.c +++ b/drivers/ide/ide-tape.c | |||
@@ -687,7 +687,7 @@ static void idetape_init_pc(struct ide_atapi_pc *pc) | |||
687 | pc->buf_size = IDETAPE_PC_BUFFER_SIZE; | 687 | pc->buf_size = IDETAPE_PC_BUFFER_SIZE; |
688 | pc->bh = NULL; | 688 | pc->bh = NULL; |
689 | pc->b_data = NULL; | 689 | pc->b_data = NULL; |
690 | pc->idetape_callback = ide_tape_callback; | 690 | pc->callback = ide_tape_callback; |
691 | } | 691 | } |
692 | 692 | ||
693 | static void idetape_create_request_sense_cmd(struct ide_atapi_pc *pc) | 693 | static void idetape_create_request_sense_cmd(struct ide_atapi_pc *pc) |
@@ -841,7 +841,7 @@ static ide_startstop_t idetape_pc_intr(ide_drive_t *drive) | |||
841 | if (tape->failed_pc == pc) | 841 | if (tape->failed_pc == pc) |
842 | tape->failed_pc = NULL; | 842 | tape->failed_pc = NULL; |
843 | /* Command finished - Call the callback function */ | 843 | /* Command finished - Call the callback function */ |
844 | pc->idetape_callback(drive); | 844 | pc->callback(drive); |
845 | return ide_stopped; | 845 | return ide_stopped; |
846 | } | 846 | } |
847 | 847 | ||
@@ -1034,7 +1034,7 @@ static ide_startstop_t idetape_issue_pc(ide_drive_t *drive, | |||
1034 | pc->error = IDETAPE_ERROR_GENERAL; | 1034 | pc->error = IDETAPE_ERROR_GENERAL; |
1035 | } | 1035 | } |
1036 | tape->failed_pc = NULL; | 1036 | tape->failed_pc = NULL; |
1037 | pc->idetape_callback(drive); | 1037 | pc->callback(drive); |
1038 | return ide_stopped; | 1038 | return ide_stopped; |
1039 | } | 1039 | } |
1040 | debug_log(DBG_SENSE, "Retry #%d, cmd = %02X\n", pc->retries, pc->c[0]); | 1040 | debug_log(DBG_SENSE, "Retry #%d, cmd = %02X\n", pc->retries, pc->c[0]); |
@@ -1120,7 +1120,7 @@ static ide_startstop_t idetape_media_access_finished(ide_drive_t *drive) | |||
1120 | pc->error = IDETAPE_ERROR_GENERAL; | 1120 | pc->error = IDETAPE_ERROR_GENERAL; |
1121 | tape->failed_pc = NULL; | 1121 | tape->failed_pc = NULL; |
1122 | } | 1122 | } |
1123 | pc->idetape_callback(drive); | 1123 | pc->callback(drive); |
1124 | return ide_stopped; | 1124 | return ide_stopped; |
1125 | } | 1125 | } |
1126 | 1126 | ||