dmaengine: edma: Use correct type for of_find_property() third parameter
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 21 Sep 2016 12:41:29 +0000 (15:41 +0300)
committerVinod Koul <vinod.koul@intel.com>
Wed, 28 Sep 2016 03:23:13 +0000 (08:53 +0530)
The correct type is int and not for the third parameter of
of_find_property().
Fixes compilation for 64bit architectures (x86_64, aarch64).

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/edma.c

index 951b8b2..4f00db3 100644 (file)
@@ -2026,8 +2026,7 @@ static struct edma_soc_info *edma_setup_info_from_dt(struct device *dev,
 {
        struct edma_soc_info *info;
        struct property *prop;
-       size_t sz;
-       int ret;
+       int sz, ret;
 
        info = devm_kzalloc(dev, sizeof(struct edma_soc_info), GFP_KERNEL);
        if (!info)