dma-debug: use sg_dma_address accessor instead of using dma_address directly
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Wed, 27 May 2009 00:43:01 +0000 (09:43 +0900)
committerJoerg Roedel <joerg.roedel@amd.com>
Fri, 29 May 2009 12:26:42 +0000 (14:26 +0200)
commit15aedea439c4d7dbec17c99b5e1594c01b979833
tree350a919d744ebabd08364b843c9b8c7618c1b39e
parented888aef427365d19f887c271a3a906d16422d24
dma-debug: use sg_dma_address accessor instead of using dma_address directly

Architectures might not have dma_address in struct scatterlist (PARISC
doesn't). Directly accessing to dma_address in struct scatterlist is
wrong; we need to use sg_dma_address() accesssor instead.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
lib/dma-debug.c