x86: gart: Add own dma_mapping_error function
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Sun, 15 Nov 2009 12:19:52 +0000 (21:19 +0900)
committerIngo Molnar <mingo@elte.hu>
Tue, 17 Nov 2009 06:53:20 +0000 (07:53 +0100)
commit42109197eb7c01080eea6d9cd48ca23cbc3c566c
tree792330fbadd6f277111a0f65bd14a96e284811f5
parent99f4c9de2b707795acb215e2e94df7ea266042b5
x86: gart: Add own dma_mapping_error function

GART IOMMU is the only user of bad_dma_address variable.

This patch converts GART to use the newer mechanism, fill in
->mapping_error() in struct dma_map_ops, to make
dma_mapping_error() work in IOMMU specific way.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: muli@il.ibm.com
Cc: joerg.roedel@amd.com
LKML-Reference: <1258287594-8777-2-git-send-email-fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/pci-gart_64.c