diff options
author | Vinod Koul <vinod.koul@intel.com> | 2013-11-28 04:29:39 -0500 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-12-15 22:48:48 -0500 |
commit | 9d0f1fa6e104ad80c21a1051bb875b4c33d437e0 (patch) | |
tree | e340c649f16d4827083e520477f80fc486272916 /drivers/dma | |
parent | 2b7f65b11d87f9f3925dee5df020303b362c98ee (diff) |
dmaengine: mmp_tdma: fix the 'pointer from integer' warnings
the driver is using unsigned long type for storing the channel register base
"reg_base", this leads to bunch of warns when we try to use this as pointer. So
better use an iomem pointer type for this variable
drivers/dma/mmp_tdma.c: In function 'mmp_tdma_chan_set_desc':
drivers/dma/mmp_tdma.c:143: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast
drivers/dma/mmp_tdma.c:144: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast
drivers/dma/mmp_tdma.c:144: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast
drivers/dma/mmp_tdma.c: In function 'mmp_tdma_enable_chan':
drivers/dma/mmp_tdma.c:151: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast
drivers/dma/mmp_tdma.c:153: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast
drivers/dma/mmp_tdma.c:153: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast
drivers/dma/mmp_tdma.c: In function 'mmp_tdma_disable_chan':
drivers/dma/mmp_tdma.c:160: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast
drivers/dma/mmp_tdma.c:160: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast
drivers/dma/mmp_tdma.c:164: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast
drivers/dma/mmp_tdma.c: In function 'mmp_tdma_resume_chan':
drivers/dma/mmp_tdma.c:171: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast
drivers/dma/mmp_tdma.c:171: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast
drivers/dma/mmp_tdma.c: In function 'mmp_tdma_pause_chan':
drivers/dma/mmp_tdma.c:178: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast
drivers/dma/mmp_tdma.c:178: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast
drivers/dma/mmp_tdma.c: In function 'mmp_tdma_config_chan':
drivers/dma/mmp_tdma.c:263: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast
drivers/dma/mmp_tdma.c: In function 'mmp_tdma_clear_chan_irq':
drivers/dma/mmp_tdma.c:269: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast
drivers/dma/mmp_tdma.c:274: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/mmp_tdma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/mmp_tdma.c b/drivers/dma/mmp_tdma.c index 3ddacc14a736..61b562b2602d 100644 --- a/drivers/dma/mmp_tdma.c +++ b/drivers/dma/mmp_tdma.c | |||
@@ -121,7 +121,7 @@ struct mmp_tdma_chan { | |||
121 | int idx; | 121 | int idx; |
122 | enum mmp_tdma_type type; | 122 | enum mmp_tdma_type type; |
123 | int irq; | 123 | int irq; |
124 | unsigned long reg_base; | 124 | void __iomem *reg_base; |
125 | 125 | ||
126 | size_t buf_len; | 126 | size_t buf_len; |
127 | size_t period_len; | 127 | size_t period_len; |
@@ -526,7 +526,7 @@ static int mmp_tdma_chan_init(struct mmp_tdma_device *tdev, | |||
526 | tdmac->chan.device = &tdev->device; | 526 | tdmac->chan.device = &tdev->device; |
527 | tdmac->idx = idx; | 527 | tdmac->idx = idx; |
528 | tdmac->type = type; | 528 | tdmac->type = type; |
529 | tdmac->reg_base = (unsigned long)tdev->base + idx * 4; | 529 | tdmac->reg_base = tdev->base + idx * 4; |
530 | tdmac->status = DMA_COMPLETE; | 530 | tdmac->status = DMA_COMPLETE; |
531 | tdev->tdmac[tdmac->idx] = tdmac; | 531 | tdev->tdmac[tdmac->idx] = tdmac; |
532 | tasklet_init(&tdmac->tasklet, dma_do_tasklet, (unsigned long)tdmac); | 532 | tasklet_init(&tdmac->tasklet, dma_do_tasklet, (unsigned long)tdmac); |