dma: at_hdmac: correct incompatible type for argument 1 of 'spin_lock_bh'
authorNicolas Ferre <nicolas.ferre@atmel.com>
Wed, 16 Dec 2009 15:28:03 +0000 (16:28 +0100)
committerDan Williams <dan.j.williams@intel.com>
Wed, 16 Dec 2009 18:21:48 +0000 (11:21 -0700)
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>
drivers/dma/at_hdmac.c

index 7585c4164bd5f1d28d300e923969b797c5d9bd99..c558fa13b4b75ddca2a3c7524c391c902b01c0f6 100644 (file)
@@ -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;
@@ -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;