From: Becky Bruce Date: Thu, 14 May 2009 12:42:27 +0000 (+0000) Subject: powerpc: Use sg->dma_length in sg_dma_len() macro on 32-bit X-Git-Tag: v2.6.31-rc1~331^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2138422bbab91c3e924c9836e394f4925b456b79;p=pandora-kernel.git powerpc: Use sg->dma_length in sg_dma_len() macro on 32-bit Currently, the 32-bit code uses sg->length instead of sg->dma_lentgh to report sg_dma_len. However, since the default dma code for 32-bit (the dma_direct case) sets dma_length and length to the same thing, we should be able to use dma_length there as well. This gets rid of some 32-vs-64-bit ifdefs, and is needed by the swiotlb code which actually distinguishes between dma_length and length. Signed-off-by: Becky Bruce Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed