diff options
Diffstat (limited to 'drivers/ide/ide-taskfile.c')
-rw-r--r-- | drivers/ide/ide-taskfile.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/ide/ide-taskfile.c b/drivers/ide/ide-taskfile.c index b559bece6e73..b8c7e8134d88 100644 --- a/drivers/ide/ide-taskfile.c +++ b/drivers/ide/ide-taskfile.c | |||
@@ -759,6 +759,7 @@ int ide_wait_cmd (ide_drive_t *drive, u8 cmd, u8 nsect, u8 feature, u8 sectors, | |||
759 | buf = buffer; | 759 | buf = buffer; |
760 | memset(buf, 0, 4 + SECTOR_WORDS * 4 * sectors); | 760 | memset(buf, 0, 4 + SECTOR_WORDS * 4 * sectors); |
761 | ide_init_drive_cmd(&rq); | 761 | ide_init_drive_cmd(&rq); |
762 | rq.cmd_type = REQ_TYPE_ATA_CMD; | ||
762 | rq.buffer = buf; | 763 | rq.buffer = buf; |
763 | *buf++ = cmd; | 764 | *buf++ = cmd; |
764 | *buf++ = nsect; | 765 | *buf++ = nsect; |
@@ -778,7 +779,10 @@ int ide_cmd_ioctl (ide_drive_t *drive, unsigned int cmd, unsigned long arg) | |||
778 | 779 | ||
779 | if (NULL == (void *) arg) { | 780 | if (NULL == (void *) arg) { |
780 | struct request rq; | 781 | struct request rq; |
782 | |||
781 | ide_init_drive_cmd(&rq); | 783 | ide_init_drive_cmd(&rq); |
784 | rq.cmd_type = REQ_TYPE_ATA_CMD; | ||
785 | |||
782 | return ide_do_drive_cmd(drive, &rq, ide_wait); | 786 | return ide_do_drive_cmd(drive, &rq, ide_wait); |
783 | } | 787 | } |
784 | 788 | ||