From: Iago Abal Date: Mon, 27 Jun 2016 07:51:42 +0000 (+0200) Subject: drivers: ata: pata_arasan_cf: use the same name for the same lock X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3e70af86e52e9e9e8fe32027b0471a8da93b498e;p=linux-beck.git 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 Signed-off-by: Tejun Heo --- 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); }