diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-01-25 16:17:16 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-01-25 16:17:16 -0500 |
commit | 10d90157c83d4b6743c9063c36f9e7f27aa254b6 (patch) | |
tree | e4dd04ba916fee294629f7f6354d241f4f9b0619 /include/linux | |
parent | 1edee60e9d994f2b9a79b1333be39790683541fe (diff) |
ide: convert do_rw_taskfile() to use ->data_phase
* Use task->data_phase in do_rw_taskfile() to decide what to do.
* task->prehandler is only used by TASKFILE[_MULTI]_OUT so just
use pre_task_out_intr() directly and remove no longer needed
'prehandler' field from ide_task_t.
* Remove no longer needed ide_pre_handler_t type.
There should be no functionality changes caused by this patch.
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/ide.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index 849447572a6b..2c28fb75915a 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -626,7 +626,6 @@ typedef struct hwif_s { | |||
626 | /* | 626 | /* |
627 | * internal ide interrupt handler type | 627 | * internal ide interrupt handler type |
628 | */ | 628 | */ |
629 | typedef ide_startstop_t (ide_pre_handler_t)(ide_drive_t *, struct request *); | ||
630 | typedef ide_startstop_t (ide_handler_t)(ide_drive_t *); | 629 | typedef ide_startstop_t (ide_handler_t)(ide_drive_t *); |
631 | typedef int (ide_expiry_t)(ide_drive_t *); | 630 | typedef int (ide_expiry_t)(ide_drive_t *); |
632 | 631 | ||
@@ -950,7 +949,6 @@ typedef struct ide_task_s { | |||
950 | }; | 949 | }; |
951 | u32 tf_flags; | 950 | u32 tf_flags; |
952 | int data_phase; | 951 | int data_phase; |
953 | ide_pre_handler_t *prehandler; | ||
954 | ide_handler_t *handler; | 952 | ide_handler_t *handler; |
955 | struct request *rq; /* copy of request */ | 953 | struct request *rq; /* copy of request */ |
956 | void *special; /* valid_t generally */ | 954 | void *special; /* valid_t generally */ |