From: FUJITA Tomonori Date: Tue, 10 Nov 2009 10:46:15 +0000 (+0900) Subject: x86: amd_iommu: Convert amd_iommu_detect() to use iommu_init hook X-Git-Tag: v2.6.33-rc1~409^2~57 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea1b0d3945c7374849235b6ecaea1191ee1d9d50;p=pandora-kernel.git x86: amd_iommu: Convert amd_iommu_detect() to use iommu_init hook This changes amd_iommu_detect() to set amd_iommu_init to iommu_init hook if amd_iommu_detect() finds the AMD IOMMU. We can kill the code to check if we found the IOMMU in amd_iommu_init() since amd_iommu_detect() sets amd_iommu_init() only when it found the IOMMU. Signed-off-by: FUJITA Tomonori Cc: chrisw@sous-sol.org Cc: dwmw2@infradead.org Cc: joerg.roedel@amd.com Cc: muli@il.ibm.com LKML-Reference: <1257849980-22640-5-git-send-email-fujita.tomonori@lab.ntt.co.jp> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed