diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-11-25 15:15:14 +0800 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-11-28 13:39:11 +0530 |
commit | 086b0af19ae43d1ac5d77b5d423aa58374ad2709 (patch) | |
tree | 808089d6104e830d080495d7924d53e1a52aa837 /drivers/dma/mmp_pdma.c | |
parent | 415612c1caab50f60797f06ad016ef602f0503cb (diff) | |
download | linux-086b0af19ae43d1ac5d77b5d423aa58374ad2709.tar.bz2 |
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/mmp_pdma.c')
-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; } |