aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/ata/libata-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 25daf39368f6..2c270169f35f 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -774,7 +774,7 @@ int ata_build_rw_tf(struct ata_taskfile *tf, struct ata_device *dev,
774 tf->lbam = (block >> 8) & 0xff; 774 tf->lbam = (block >> 8) & 0xff;
775 tf->lbal = block & 0xff; 775 tf->lbal = block & 0xff;
776 776
777 tf->device = 1 << 6; 777 tf->device = ATA_LBA;
778 if (tf->flags & ATA_TFLAG_FUA) 778 if (tf->flags & ATA_TFLAG_FUA)
779 tf->device |= 1 << 7; 779 tf->device |= 1 << 7;
780 } else if (dev->flags & ATA_DFLAG_LBA) { 780 } else if (dev->flags & ATA_DFLAG_LBA) {