Skip to content

Commit

Permalink
dma: at_hdmac: correct incompatible type for argument 1 of 'spin_lock…
Browse files Browse the repository at this point in the history
…_bh'

Correct a typo error in locking calls.

Cc: <stable@kernel.org>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
  • Loading branch information
Nicolas Ferre authored and Dan Williams committed Dec 16, 2009
1 parent 12458ea commit 4297a46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/dma/at_hdmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
cookie, done ? *done : 0, used ? *used : 0);

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

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

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

if (done)
*done = last_complete;
Expand Down

0 comments on commit 4297a46

Please sign in to comment.