diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-27 07:46:31 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-27 07:46:31 -0400 |
commit | a09485df9cda49fbde2766c86eb18a9cae585162 (patch) | |
tree | 4dfc6219da40e86aa293621d43c5a71018c7992f /drivers/ide/ide-floppy.c | |
parent | e120237c0e4d9a83c1380f5ff7b5f2ba31f1c820 (diff) |
ide: move request type specific code from ide_end_drive_cmd() to callers (v3)
* Move request type specific code from ide_end_drive_cmd() to callers.
* Remove stale ide_end_drive_cmd() documentation and drop no longer
used 'stat' argument. Then rename the function to ide_complete_rq().
v2:
* Fix handling of blk_pm_request() requests in task_no_data_intr().
v3:
* Some ide_no_data_taskfile() users (HPA code and HDIO_DRIVE_* ioctls
handlers) access original command later so we need to update it in
ide_complete_task().
There should be no functional changes caused by this patch.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-floppy.c')
-rw-r--r-- | drivers/ide/ide-floppy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c index d1a79e8e0d69..39e7fda37c5f 100644 --- a/drivers/ide/ide-floppy.c +++ b/drivers/ide/ide-floppy.c | |||
@@ -101,7 +101,7 @@ static int ide_floppy_end_request(ide_drive_t *drive, int uptodate, int nsecs) | |||
101 | } | 101 | } |
102 | rq->errors = error; | 102 | rq->errors = error; |
103 | /* fixme: need to move this local also */ | 103 | /* fixme: need to move this local also */ |
104 | ide_end_drive_cmd(drive, 0, 0); | 104 | ide_complete_rq(drive, 0); |
105 | return 0; | 105 | return 0; |
106 | } | 106 | } |
107 | 107 | ||