diff options
author | Boojin Kim <boojin.kim@samsung.com> | 2011-11-03 02:48:49 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@linux.intel.com> | 2011-11-10 04:44:19 -0500 |
commit | dab6538e29e68af6206ec1889c847b428f290989 (patch) | |
tree | 58ce623459ea3b1dd25795ed83ee29e65ee25556 /drivers | |
parent | c511595390a373e19a774246c659b4f563a4c3f3 (diff) |
DMA: PL330: Fix build warning
This patch adds to fix the build warning as following.
drivers/dma/pl330.c: In function 'pl330_probe':
drivers/dma/pl330.c:859: warning: comparison of distinct pointer types lacks a cast
Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/dma/pl330.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index 571041477ab2..186b8221803e 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c | |||
@@ -856,7 +856,8 @@ pl330_probe(struct amba_device *adev, const struct amba_id *id) | |||
856 | INIT_LIST_HEAD(&pd->channels); | 856 | INIT_LIST_HEAD(&pd->channels); |
857 | 857 | ||
858 | /* Initialize channel parameters */ | 858 | /* Initialize channel parameters */ |
859 | num_chan = max(pdat ? pdat->nr_valid_peri : 0, (u8)pi->pcfg.num_chan); | 859 | num_chan = max(pdat ? (int)pdat->nr_valid_peri : 0, |
860 | (int)pi->pcfg.num_chan); | ||
860 | pdmac->peripherals = kzalloc(num_chan * sizeof(*pch), GFP_KERNEL); | 861 | pdmac->peripherals = kzalloc(num_chan * sizeof(*pch), GFP_KERNEL); |
861 | 862 | ||
862 | for (i = 0; i < num_chan; i++) { | 863 | for (i = 0; i < num_chan; i++) { |