]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/dma/pch_dma.c
Merge branch 'for-linus-4.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...
[karo-tx-linux.git] / drivers / dma / pch_dma.c
index df95727dc2fbaeb3c16f2511e60327360c3995fc..f9028e9d0dfc269cadd69b843aca254e8d46acad 100644 (file)
@@ -417,10 +417,8 @@ static dma_cookie_t pd_tx_submit(struct dma_async_tx_descriptor *txd)
 {
        struct pch_dma_desc *desc = to_pd_desc(txd);
        struct pch_dma_chan *pd_chan = to_pd_chan(txd->chan);
-       dma_cookie_t cookie;
 
        spin_lock(&pd_chan->lock);
-       cookie = dma_cookie_assign(txd);
 
        if (list_empty(&pd_chan->active_list)) {
                list_add_tail(&desc->desc_node, &pd_chan->active_list);
@@ -439,9 +437,8 @@ static struct pch_dma_desc *pdc_alloc_desc(struct dma_chan *chan, gfp_t flags)
        struct pch_dma *pd = to_pd(chan->device);
        dma_addr_t addr;
 
-       desc = pci_pool_alloc(pd->pool, flags, &addr);
+       desc = pci_pool_zalloc(pd->pool, flags, &addr);
        if (desc) {
-               memset(desc, 0, sizeof(struct pch_dma_desc));
                INIT_LIST_HEAD(&desc->tx_list);
                dma_async_tx_descriptor_init(&desc->txd, chan);
                desc->txd.tx_submit = pd_tx_submit;