aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-floppy.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-03-27 07:46:38 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-03-27 07:46:38 -0400
commitb6308ee0c55acd2e943d849773c9f0a49c516317 (patch)
treee56f59a7935fccdf0145ffd4638a066bf4ba1e17 /drivers/ide/ide-floppy.c
parentadb1af9803d167091c2cb4de14014185054bfe2c (diff)
ide: move command related fields from ide_hwif_t to struct ide_cmd
* Move command related fields from ide_hwif_t to struct ide_cmd. * Make ide_init_sg_cmd() take command and sectors number as arguments. 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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c
index 5625946739ad..f56e9a918b99 100644
--- a/drivers/ide/ide-floppy.c
+++ b/drivers/ide/ide-floppy.c
@@ -244,6 +244,7 @@ static ide_startstop_t ide_floppy_do_request(ide_drive_t *drive,
244{ 244{
245 struct ide_disk_obj *floppy = drive->driver_data; 245 struct ide_disk_obj *floppy = drive->driver_data;
246 ide_hwif_t *hwif = drive->hwif; 246 ide_hwif_t *hwif = drive->hwif;
247 struct ide_cmd *cmd = &hwif->cmd;
247 struct ide_atapi_pc *pc; 248 struct ide_atapi_pc *pc;
248 249
249 if (drive->debug_mask & IDE_DBG_RQ) 250 if (drive->debug_mask & IDE_DBG_RQ)
@@ -285,12 +286,12 @@ static ide_startstop_t ide_floppy_do_request(ide_drive_t *drive,
285 } 286 }
286 287
287 if (blk_fs_request(rq) || pc->req_xfer) { 288 if (blk_fs_request(rq) || pc->req_xfer) {
288 ide_init_sg_cmd(drive, rq); 289 ide_init_sg_cmd(cmd, rq->nr_sectors);
289 ide_map_sg(drive, rq); 290 ide_map_sg(drive, rq);
290 } 291 }
291 292
292 pc->sg = hwif->sg_table; 293 pc->sg = hwif->sg_table;
293 pc->sg_cnt = hwif->sg_nents; 294 pc->sg_cnt = cmd->sg_nents;
294 295
295 pc->rq = rq; 296 pc->rq = rq;
296 297