summaryrefslogtreecommitdiffstats
path: root/drivers/dma/edma.c
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2016-09-21 14:41:29 +0200
committerVinod Koul <vinod.koul@intel.com>2016-09-28 05:23:13 +0200
commitf1d1e34fa5929552662d2c25363bbb82dd3a8fec (patch)
tree5e608324175cb6f2d35da7b6adacf1aa77831346 /drivers/dma/edma.c
parentdmaengine: edma: Fix of_device_id data parameter usage (legacy vs TPCC) (diff)
downloadlinux-f1d1e34fa5929552662d2c25363bbb82dd3a8fec.tar.xz
linux-f1d1e34fa5929552662d2c25363bbb82dd3a8fec.zip
dmaengine: edma: Use correct type for of_find_property() third parameter
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>
Diffstat (limited to 'drivers/dma/edma.c')
-rw-r--r--drivers/dma/edma.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c
index 951b8b204a47..4f00db34db98 100644
--- a/drivers/dma/edma.c
+++ b/drivers/dma/edma.c
@@ -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)