ide: refactor tf_load() method
[deliverable/linux.git] / drivers / ide / tx4939ide.c
index af8b0f68d5cf4f6d2d2ea40fb561b6cc76122a5b..564422d239766a97debc65ff45546d0bbfa9095b 100644 (file)
@@ -434,11 +434,12 @@ static void tx4939ide_tf_load_fixup(ide_drive_t *drive)
        tx4939ide_writew(sysctl, base, TX4939IDE_Sys_Ctl);
 }
 
-static void tx4939ide_tf_load(ide_drive_t *drive, struct ide_cmd *cmd)
+static void tx4939ide_tf_load(ide_drive_t *drive, struct ide_taskfile *tf,
+                             u8 valid)
 {
-       ide_tf_load(drive, cmd);
+       ide_tf_load(drive, tf, valid);
 
-       if (cmd->valid.out.tf & IDE_VALID_DEVICE)
+       if (valid & IDE_VALID_DEVICE)
                tx4939ide_tf_load_fixup(drive);
 }
 
This page took 0.027686 seconds and 5 git commands to generate.