From: FUJITA Tomonori Date: Tue, 8 Jun 2010 11:03:15 +0000 (+0900) Subject: microblaze: Fix sg_dma_len() regression X-Git-Tag: v2.6.35-rc3~19^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcdcddbcbbd39a3363bd48414bfe44553b6d698a;p=pandora-kernel.git microblaze: Fix sg_dma_len() regression The commit "asm-generic: add NEED_SG_DMA_LENGTH to define sg_dma_len()" 18e98307de0d746cb0845ebf66535ce2184c25a2 broke microblaze compilation. dma_direct_map_sg() sets sg->dma_length, however microblaze doesn't set NEED_SG_DMA_LENGTH so scatterlist strcutres doesn't include dma_length. sg->dma_length is always equal to sg->length on microblaze. So we don't need to set set dma_length, that is, microblaze can simply use sg->length. Signed-off-by: FUJITA Tomonori Signed-off-by: Michal Simek --- Reading git-diff-tree failed