diff options
author | 2007-02-05 18:51:25 -0800 | |
---|---|---|
committer | 2007-02-05 18:51:25 -0800 | |
commit | 563aaf064f3776623ff5e7aef511ac2eb7e5f0bb (patch) | |
tree | 0ae2565cf94dc705a58984f804d0c2046339abf9 /arch/x86_64 | |
parent | [IA64] make swiotlb use bus_to_virt/virt_to_bus (diff) | |
download | linux-563aaf064f3776623ff5e7aef511ac2eb7e5f0bb.tar.gz linux-563aaf064f3776623ff5e7aef511ac2eb7e5f0bb.tar.bz2 linux-563aaf064f3776623ff5e7aef511ac2eb7e5f0bb.zip |
[IA64] swiotlb cleanup
- add proper __init decoration to swiotlb's init code (and the code calling
it, where not already the case)
- replace uses of 'unsigned long' with dma_addr_t where appropriate
- do miscellaneous simplicfication and cleanup
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/x86_64')
-rw-r--r-- | arch/x86_64/kernel/pci-swiotlb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/kernel/pci-swiotlb.c b/arch/x86_64/kernel/pci-swiotlb.c index 697f0aa794b9..eb18be5a6569 100644 --- a/arch/x86_64/kernel/pci-swiotlb.c +++ b/arch/x86_64/kernel/pci-swiotlb.c @@ -29,7 +29,7 @@ struct dma_mapping_ops swiotlb_dma_ops = { .dma_supported = NULL, }; -void pci_swiotlb_init(void) +void __init pci_swiotlb_init(void) { /* don't initialize swiotlb if iommu=off (no_iommu=1) */ if (!iommu_detected && !no_iommu && end_pfn > MAX_DMA32_PFN) |