ide: refactor tf_load() method
[deliverable/linux.git] / drivers / ide / ide-probe.c
index 6a98d7c1681a7ba99713e4d77626e6b324384dbe..44d7816c1fe98acc03cae213b70ea9050a8a7fc1 100644 (file)
@@ -283,13 +283,11 @@ int ide_dev_read_id(ide_drive_t *drive, u8 cmd, u16 *id)
         * identify command to be sure of reply
         */
        if (cmd == ATA_CMD_ID_ATAPI) {
-               struct ide_cmd cmd;
+               struct ide_taskfile tf;
 
-               memset(&cmd, 0, sizeof(cmd));
+               memset(&tf, 0, sizeof(tf));
                /* disable DMA & overlap */
-               cmd.valid.out.tf = IDE_VALID_FEATURE;
-
-               tp_ops->tf_load(drive, &cmd);
+               tp_ops->tf_load(drive, &tf, IDE_VALID_FEATURE);
        }
 
        /* ask drive for ID */
This page took 0.025202 seconds and 5 git commands to generate.