summaryrefslogtreecommitdiff
path: root/drivers/ata/libahci.c
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2016-07-14 03:05:43 +0300
committerTejun Heo <tj@kernel.org>2016-07-14 17:44:57 +0300
commit179b310ae77ea4f924fe338af5c8983c3f339098 (patch)
tree5b08dec2296ee5c829a4a751535b50d16ce4cb6a /drivers/ata/libahci.c
parentb1c04e80c6da5f5d3d4778ede23c59666135fdeb (diff)
downloadlinux-179b310ae77ea4f924fe338af5c8983c3f339098.tar.xz
libata: use ata_is_ncq() accessors
Use accessor functions instead of the raw value. Signed-off-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata/libahci.c')
-rw-r--r--drivers/ata/libahci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c
index 71b07198e207..3e69c20e9d03 100644
--- a/drivers/ata/libahci.c
+++ b/drivers/ata/libahci.c
@@ -1975,7 +1975,7 @@ unsigned int ahci_qc_issue(struct ata_queued_cmd *qc)
*/
pp->active_link = qc->dev->link;
- if (qc->tf.protocol == ATA_PROT_NCQ)
+ if (ata_is_ncq(qc->tf.protocol))
writel(1 << qc->tag, port_mmio + PORT_SCR_ACT);
if (pp->fbs_enabled && pp->fbs_last_dev != qc->dev->link->pmp) {