summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-11-25 08:15:14 +0100
committerVinod Koul <vinod.koul@intel.com>2013-11-28 09:09:11 +0100
commit086b0af19ae43d1ac5d77b5d423aa58374ad2709 (patch)
tree808089d6104e830d080495d7924d53e1a52aa837
parentdmaengine: s3c24xx-dma: use DMA_COMPLETE for dma completion status (diff)
downloadlinux-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>
-rw-r--r--drivers/dma/mmp_pdma.c1
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;
}