lkml.org 
[lkml]   [2018]   [Aug]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 34/46] dmaengine: mxs-dma: use dmaenginem_async_device_register to simplify the code
    Date
    Use dmaenginem_async_device_register to simplify the code:
    remove dma_async_device_unregister.

    Signed-off-by: Huang Shijie <sjhuang@iluvatar.ai>
    ---
    drivers/dma/mxs-dma.c | 3 +--
    1 file changed, 1 insertion(+), 2 deletions(-)

    diff --git a/drivers/dma/mxs-dma.c b/drivers/dma/mxs-dma.c
    index ae5182ff0128..35193b31a9e0 100644
    --- a/drivers/dma/mxs-dma.c
    +++ b/drivers/dma/mxs-dma.c
    @@ -847,7 +847,7 @@ static int __init mxs_dma_probe(struct platform_device *pdev)
    mxs_dma->dma_device.residue_granularity = DMA_RESIDUE_GRANULARITY_BURST;
    mxs_dma->dma_device.device_issue_pending = mxs_dma_enable_chan;

    - ret = dma_async_device_register(&mxs_dma->dma_device);
    + ret = dmaenginem_async_device_register(&mxs_dma->dma_device);
    if (ret) {
    dev_err(mxs_dma->dma_device.dev, "unable to register\n");
    return ret;
    @@ -857,7 +857,6 @@ static int __init mxs_dma_probe(struct platform_device *pdev)
    if (ret) {
    dev_err(mxs_dma->dma_device.dev,
    "failed to register controller\n");
    - dma_async_device_unregister(&mxs_dma->dma_device);
    }

    dev_info(mxs_dma->dma_device.dev, "initialized\n");
    --
    2.17.1
    \
     
     \ /
      Last update: 2018-08-03 09:25    [W:4.799 / U:0.200 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site