dmaengine: consolidate initialization of cookies
[deliverable/linux.git] / drivers / dma / ste_dma40.c
index 07b82e367ffdfa261e6493f5db11217d5cc695dc..1ea6d02d08ab00c1c638dd79712505e30b897549 100644 (file)
@@ -2172,7 +2172,7 @@ static int d40_alloc_chan_resources(struct dma_chan *chan)
        bool is_free_phy;
        spin_lock_irqsave(&d40c->lock, flags);
 
-       chan->completed_cookie = chan->cookie = 1;
+       dma_cookie_init(chan);
 
        /* If no dma configuration is set use default configuration (memcpy) */
        if (!d40c->configured) {
This page took 0.025255 seconds and 5 git commands to generate.