dmaengine: ti-dma-crossbar: Correct type for of_find_property() third parameter
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 21 Sep 2016 12:41:31 +0000 (15:41 +0300)
committerVinod Koul <vinod.koul@intel.com>
Wed, 28 Sep 2016 03:23:15 +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/ti-dma-crossbar.c

index 5ae294b..e4f3bd1 100644 (file)
@@ -311,7 +311,7 @@ static int ti_dra7_xbar_probe(struct platform_device *pdev)
        struct property *prop;
        struct resource *res;
        u32 safe_val;
-       size_t sz;
+       int sz;
        void __iomem *iomem;
        int i, ret;