summaryrefslogtreecommitdiff
path: root/drivers/dma/mcf-edma.c
diff options
context:
space:
mode:
authorAngelo Dureghello <angelo@sysam.it>2018-09-14 22:13:48 +0300
committerVinod Koul <vkoul@kernel.org>2018-09-18 22:15:45 +0300
commit5b7d0c9474bc3798b38c393974747336a2cf8497 (patch)
tree7353ffae428eb1a6733191f2bd9b02f1af1408ce /drivers/dma/mcf-edma.c
parente7a3ff92eaf19eab14e8149758428e680c61706b (diff)
downloadlinux-5b7d0c9474bc3798b38c393974747336a2cf8497.tar.xz
dmaengine: mcf-edma: avoid warning for wrong pointer cast
This patch fixes the following compilation warning reported during x86_64 allmodconfig build: drivers/dma/mcf-edma.c: In function 'mcf_edma_filter_fn': drivers/dma/mcf-edma.c:296:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] return (mcf_chan->slave_id == (u32)param); Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Angelo Dureghello <angelo@sysam.it> Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/mcf-edma.c')
-rw-r--r--drivers/dma/mcf-edma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/mcf-edma.c b/drivers/dma/mcf-edma.c
index 4d30d5302649..5de1b07eddff 100644
--- a/drivers/dma/mcf-edma.c
+++ b/drivers/dma/mcf-edma.c
@@ -293,7 +293,7 @@ bool mcf_edma_filter_fn(struct dma_chan *chan, void *param)
if (chan->device->dev->driver == &mcf_edma_driver.driver) {
struct fsl_edma_chan *mcf_chan = to_fsl_edma_chan(chan);
- return (mcf_chan->slave_id == (u32)param);
+ return (mcf_chan->slave_id == (uintptr_t)param);
}
return false;