]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dmaengine: edma: Fix of_device_id data parameter usage (legacy vs TPCC)
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 21 Sep 2016 12:41:28 +0000 (15:41 +0300)
committerVinod Koul <vinod.koul@intel.com>
Wed, 28 Sep 2016 03:23:06 +0000 (08:53 +0530)
commitb7862742feadf22cc1496bb6b460236a900512db
treefae37c1627cdea225493b36f4c56e3020b8d0a33
parent86737510781bca1c5d27099c7a6ed4f33b631643
dmaengine: edma: Fix of_device_id data parameter usage (legacy vs TPCC)

Use pointers to static constant variables for eDMA binding
type (legacy vs TPCC).

Fixes the following warning when compiling the driver for 64bit
architectures (x86_64 for example):
drivers/dma/edma.c:2185:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   if (match && (u32)match->data == EDMA_BINDING_TPCC)
                ^

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