summaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorIago Abal <mail@iagoabal.eu>2016-06-27 09:51:42 +0200
committerTejun Heo <tj@kernel.org>2016-06-28 12:49:40 -0400
commit3e70af86e52e9e9e8fe32027b0471a8da93b498e (patch)
tree08b14b527d5a53d3229deb72ebf8be07e588b9b4 /drivers/ata
parentf3f99d37e668f080d167cf11f3b2e986df2d315d (diff)
downloadlinux-3e70af86e52e9e9e8fe32027b0471a8da93b498e.tar.gz
linux-3e70af86e52e9e9e8fe32027b0471a8da93b498e.tar.bz2
linux-3e70af86e52e9e9e8fe32027b0471a8da93b498e.zip
drivers: ata: pata_arasan_cf: use the same name for the same lock
Note that `&acdev->host->lock' and `qc->ap->lock' denote the same lock, and it's particularly confusing to spin_lock on the former but spin_unlock on the latter. Signed-off-by: Iago Abal <mail@iagoabal.eu> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/pata_arasan_cf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/pata_arasan_cf.c b/drivers/ata/pata_arasan_cf.c
index 80fe0f6fed29..b4d54771c9fe 100644
--- a/drivers/ata/pata_arasan_cf.c
+++ b/drivers/ata/pata_arasan_cf.c
@@ -565,7 +565,7 @@ chan_request_fail:
qc->ap->hsm_task_state = HSM_ST_ERR;
cf_ctrl_reset(acdev);
- spin_unlock_irqrestore(qc->ap->lock, flags);
+ spin_unlock_irqrestore(&acdev->host->lock, flags);
sff_intr:
dma_complete(acdev);
}