AMD IOMMU: remove now unnecessary #ifdefs

The #ifdef's are no longer necessary when the iommu-api and the amd
iommu updates are merged together.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>

-11
-11
arch/x86/kernel/amd_iommu.c
··· 426 426 iommu_queue_inv_iommu_pages(iommu, address, domid, 0, 1); 427 427 } 428 428 429 - #ifdef CONFIG_IOMMU_API 430 429 /* 431 430 * This function is used to flush the IO/TLB for a given protection domain 432 431 * on every IOMMU in the system ··· 449 450 spin_unlock_irqrestore(&iommu->lock, flags); 450 451 } 451 452 } 452 - #endif 453 453 454 454 /**************************************************************************** 455 455 * ··· 514 516 return 0; 515 517 } 516 518 517 - #ifdef CONFIG_IOMMU_API 518 519 static void iommu_unmap_page(struct protection_domain *dom, 519 520 unsigned long bus_addr) 520 521 { ··· 535 538 536 539 *pte = 0; 537 540 } 538 - #endif 539 541 540 542 /* 541 543 * This function checks if a specific unity mapping entry is needed for ··· 719 723 return id; 720 724 } 721 725 722 - #ifdef CONFIG_IOMMU_API 723 726 static void domain_id_free(int id) 724 727 { 725 728 unsigned long flags; ··· 728 733 __clear_bit(id, amd_iommu_pd_alloc_bitmap); 729 734 write_unlock_irqrestore(&amd_iommu_devtable_lock, flags); 730 735 } 731 - #endif 732 736 733 737 /* 734 738 * Used to reserve address ranges in the aperture (e.g. for exclusion ··· 1696 1702 /* Make the driver finally visible to the drivers */ 1697 1703 dma_ops = &amd_iommu_dma_ops; 1698 1704 1699 - #ifdef CONFIG_IOMMU_API 1700 1705 register_iommu(&amd_iommu_ops); 1701 - #endif 1702 1706 1703 1707 bus_register_notifier(&pci_bus_type, &device_nb); 1704 1708 ··· 1723 1731 * which is not possible with the dma_ops interface. 1724 1732 * 1725 1733 *****************************************************************************/ 1726 - 1727 - #ifdef CONFIG_IOMMU_API 1728 1734 1729 1735 static void cleanup_domain(struct protection_domain *domain) 1730 1736 { ··· 1934 1944 .iova_to_phys = amd_iommu_iova_to_phys, 1935 1945 }; 1936 1946 1937 - #endif