]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/dma/mpc512x_dma.c
dmaengine: consolidate initialization of cookies
[karo-tx-linux.git] / drivers / dma / mpc512x_dma.c
index 138271591ae9f3872dca293a245dd532318a984d..2ab0a3d0eed53eb107f475944b97a339e4419a77 100644 (file)
@@ -733,8 +733,7 @@ static int __devinit mpc_dma_probe(struct platform_device *op)
                mchan = &mdma->channels[i];
 
                mchan->chan.device = dma;
-               mchan->chan.cookie = 1;
-               mchan->chan.completed_cookie = mchan->chan.cookie;
+               dma_cookie_init(&mchan->chan);
 
                INIT_LIST_HEAD(&mchan->free);
                INIT_LIST_HEAD(&mchan->prepared);