提交 3e70af86 编写于 作者: I Iago Abal 提交者: Tejun Heo

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: NIago Abal <mail@iagoabal.eu>
Signed-off-by: NTejun Heo <tj@kernel.org>
上级 f3f99d37
...@@ -565,7 +565,7 @@ static void data_xfer(struct work_struct *work) ...@@ -565,7 +565,7 @@ static void data_xfer(struct work_struct *work)
qc->ap->hsm_task_state = HSM_ST_ERR; qc->ap->hsm_task_state = HSM_ST_ERR;
cf_ctrl_reset(acdev); cf_ctrl_reset(acdev);
spin_unlock_irqrestore(qc->ap->lock, flags); spin_unlock_irqrestore(&acdev->host->lock, flags);
sff_intr: sff_intr:
dma_complete(acdev); dma_complete(acdev);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册