Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4297a462 authored by Nicolas Ferre's avatar Nicolas Ferre Committed by Dan Williams
Browse files

dma: at_hdmac: correct incompatible type for argument 1 of 'spin_lock_bh'



Correct a typo error in locking calls.

Cc: <stable@kernel.org>
Signed-off-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 12458ea0
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -815,7 +815,7 @@ atc_is_tx_complete(struct dma_chan *chan,
	dev_vdbg(chan2dev(chan), "is_tx_complete: %d (d%d, u%d)\n",
	dev_vdbg(chan2dev(chan), "is_tx_complete: %d (d%d, u%d)\n",
			cookie, done ? *done : 0, used ? *used : 0);
			cookie, done ? *done : 0, used ? *used : 0);


	spin_lock_bh(atchan->lock);
	spin_lock_bh(&atchan->lock);


	last_complete = atchan->completed_cookie;
	last_complete = atchan->completed_cookie;
	last_used = chan->cookie;
	last_used = chan->cookie;
@@ -830,7 +830,7 @@ atc_is_tx_complete(struct dma_chan *chan,
		ret = dma_async_is_complete(cookie, last_complete, last_used);
		ret = dma_async_is_complete(cookie, last_complete, last_used);
	}
	}


	spin_unlock_bh(atchan->lock);
	spin_unlock_bh(&atchan->lock);


	if (done)
	if (done)
		*done = last_complete;
		*done = last_complete;