diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-11-25 08:15:14 +0100 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-11-28 09:09:11 +0100 |
commit | 086b0af19ae43d1ac5d77b5d423aa58374ad2709 (patch) | |
tree | 808089d6104e830d080495d7924d53e1a52aa837 /drivers/dma | |
parent | dmaengine: s3c24xx-dma: use DMA_COMPLETE for dma completion status (diff) | |
download | linux-086b0af19ae43d1ac5d77b5d423aa58374ad2709.tar.xz linux-086b0af19ae43d1ac5d77b5d423aa58374ad2709.zip |
dma: mmp_pdma: add missing platform_set_drvdata() in mmp_pdma_probe()
Add missing platform_set_drvdata() in mmp_pdma_probe(), otherwise
calling platform_get_drvdata() in mmp_pdma_remove() returns NULL.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/mmp_pdma.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/mmp_pdma.c b/drivers/dma/mmp_pdma.c index dcb1e05149a7..8869500ab92b 100644 --- a/drivers/dma/mmp_pdma.c +++ b/drivers/dma/mmp_pdma.c @@ -1017,6 +1017,7 @@ static int mmp_pdma_probe(struct platform_device *op) } } + platform_set_drvdata(op, pdev); dev_info(pdev->device.dev, "initialized %d channels\n", dma_channels); return 0; } |