aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-disk.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/ide-disk.c')
-rw-r--r--drivers/ide/ide-disk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/ide-disk.c b/drivers/ide/ide-disk.c
index c2438804d3c4..d345f5f23f01 100644
--- a/drivers/ide/ide-disk.c
+++ b/drivers/ide/ide-disk.c
@@ -428,14 +428,14 @@ static int set_multcount(ide_drive_t *drive, int arg)
428 if (arg < 0 || arg > (drive->id[ATA_ID_MAX_MULTSECT] & 0xff)) 428 if (arg < 0 || arg > (drive->id[ATA_ID_MAX_MULTSECT] & 0xff))
429 return -EINVAL; 429 return -EINVAL;
430 430
431 if (drive->special.b.set_multmode) 431 if (drive->special_flags & IDE_SFLAG_SET_MULTMODE)
432 return -EBUSY; 432 return -EBUSY;
433 433
434 rq = blk_get_request(drive->queue, READ, __GFP_WAIT); 434 rq = blk_get_request(drive->queue, READ, __GFP_WAIT);
435 rq->cmd_type = REQ_TYPE_ATA_TASKFILE; 435 rq->cmd_type = REQ_TYPE_ATA_TASKFILE;
436 436
437 drive->mult_req = arg; 437 drive->mult_req = arg;
438 drive->special.b.set_multmode = 1; 438 drive->special_flags |= IDE_SFLAG_SET_MULTMODE;
439 error = blk_execute_rq(drive->queue, NULL, rq, 0); 439 error = blk_execute_rq(drive->queue, NULL, rq, 0);
440 blk_put_request(rq); 440 blk_put_request(rq);
441 441