summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/calgary.h
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2009-11-10 11:46:13 +0100
committerIngo Molnar <mingo@elte.hu>2009-11-10 12:31:15 +0100
commitd7b9f7be216b04ff9d108f856bc03d96e7b3439c (patch)
tree8ee21e81501bbba10bead150235ca811bf81a6bb /arch/x86/include/asm/calgary.h
parentx86: Add iommu_init to x86_init_ops (diff)
downloadlinux-d7b9f7be216b04ff9d108f856bc03d96e7b3439c.tar.xz
linux-d7b9f7be216b04ff9d108f856bc03d96e7b3439c.zip
x86: Calgary: Convert detect_calgary() to use iommu_init hook
This changes detect_calgary() to set init_calgary() to iommu_init hook if detect_calgary() finds the Calgary IOMMU. We can kill the code to check if we found the IOMMU in init_calgary() since detect_calgary() sets init_calgary() only when it found the IOMMU. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Acked-by: Muli Ben-Yehuda <muli@il.ibm.com> Cc: chrisw@sous-sol.org Cc: dwmw2@infradead.org Cc: joerg.roedel@amd.com LKML-Reference: <1257849980-22640-3-git-send-email-fujita.tomonori@lab.ntt.co.jp> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/include/asm/calgary.h')
-rw-r--r--arch/x86/include/asm/calgary.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/include/asm/calgary.h b/arch/x86/include/asm/calgary.h
index b03bedb62aa7..0918654305af 100644
--- a/arch/x86/include/asm/calgary.h
+++ b/arch/x86/include/asm/calgary.h
@@ -62,10 +62,8 @@ struct cal_chipset_ops {
extern int use_calgary;
#ifdef CONFIG_CALGARY_IOMMU
-extern int calgary_iommu_init(void);
extern void detect_calgary(void);
#else
-static inline int calgary_iommu_init(void) { return 1; }
static inline void detect_calgary(void) { return; }
#endif