ide: use ata_tf_protocols enums
[deliverable/linux.git] / drivers / ide / ide-park.c
index 63c77f99a726a9b3836fa743f4a508195e639f92..c575900d559634acbdc1cbe4fd5cdafcd646aade 100644 (file)
@@ -1,6 +1,5 @@
 #include <linux/kernel.h>
 #include <linux/ide.h>
-#include <linux/hdreg.h>
 #include <linux/jiffies.h>
 #include <linux/blkdev.h>
 
@@ -80,8 +79,9 @@ ide_startstop_t ide_do_park_unpark(ide_drive_t *drive, struct request *rq)
                tf->command = ATA_CMD_CHK_POWER;
 
        cmd.tf_flags |= IDE_TFLAG_TF | IDE_TFLAG_DEVICE;
+       cmd.protocol = ATA_PROT_NODATA;
+
        cmd.rq = rq;
-       cmd.data_phase = TASKFILE_NO_DATA;
 
        return do_rw_taskfile(drive, &cmd);
 }
This page took 0.024165 seconds and 5 git commands to generate.