]> Git Repo - linux.git/commitdiff
Merge branch 'topic/mv' into for-linus
authorVinod Koul <[email protected]>
Tue, 12 Mar 2019 06:34:16 +0000 (12:04 +0530)
committerVinod Koul <[email protected]>
Tue, 12 Mar 2019 06:34:16 +0000 (12:04 +0530)
1  2 
drivers/dma/mv_xor.c

diff --combined drivers/dma/mv_xor.c
index fe4a7c71fedebedd9176e8e82875ada8046d772d,e733c5eeaabc6ad68ef6c198b291e182966422bf..65af2e7fcb2c4c21fe985519c27db829c88d2fea
@@@ -1059,7 -1059,6 +1059,7 @@@ mv_xor_channel_add(struct mv_xor_devic
                mv_chan->op_in_desc = XOR_MODE_IN_DESC;
  
        dma_dev = &mv_chan->dmadev;
 +      dma_dev->dev = &pdev->dev;
        mv_chan->xordev = xordev;
  
        /*
        dma_dev->device_free_chan_resources = mv_xor_free_chan_resources;
        dma_dev->device_tx_status = mv_xor_status;
        dma_dev->device_issue_pending = mv_xor_issue_pending;
 -      dma_dev->dev = &pdev->dev;
  
        /* set prep routines based on capability */
        if (dma_has_cap(DMA_INTERRUPT, dma_dev->cap_mask))
                 dma_has_cap(DMA_MEMCPY, dma_dev->cap_mask) ? "cpy " : "",
                 dma_has_cap(DMA_INTERRUPT, dma_dev->cap_mask) ? "intr " : "");
  
-       dma_async_device_register(dma_dev);
+       ret = dma_async_device_register(dma_dev);
+       if (ret)
+               goto err_free_irq;
        return mv_chan;
  
  err_free_irq:
This page took 0.061209 seconds and 4 git commands to generate.