From: Andre Przywara Date: Mon, 19 Aug 2013 10:19:28 +0000 (+0200) Subject: DMA: fix AMBA PL08x compilation issue with 64bit DMA address type X-Git-Tag: v3.12-rc1~75^2~3^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c38b28980f15c5d217d6b36cd8159c2fbdfeb43;p=pandora-kernel.git DMA: fix AMBA PL08x compilation issue with 64bit DMA address type When dma_addr_t is 64 bits long, compilation of the AMBA PL08x DMA driver breaks due to a missing 64bit%8bit modulo operation. Looking more closely the divisor in these operations can only be 1, 2 or 4, so the full featured '%' modulo operation is overkill and can be replaced with simple bit masking. Change from v1: Replace open-coded function with existing IS_ALIGNED macro and use a macro around that to avoid a line becoming too long. Signed-off-by: Andre Przywara Acked-by: Vinod Koul Signed-off-by: Rob Herring --- Reading git-diff-tree failed