projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
415612c
)
dma: mmp_pdma: add missing platform_set_drvdata() in mmp_pdma_probe()
author
Wei Yongjun
<yongjun_wei@trendmicro.com.cn>
Mon, 25 Nov 2013 07:15:14 +0000
(15:15 +0800)
committer
Vinod Koul
<vinod.koul@intel.com>
Thu, 28 Nov 2013 08:09:11 +0000
(13:39 +0530)
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>
drivers/dma/mmp_pdma.c
patch
|
blob
|
history
diff --git
a/drivers/dma/mmp_pdma.c
b/drivers/dma/mmp_pdma.c
index dcb1e05149a7664c6e65a214d783080d540aaafd..8869500ab92b84a4b93f4111f8936e6722d4911c 100644
(file)
--- 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;
}