aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2009-11-14 07:26:50 -0500
committerIngo Molnar <mingo@elte.hu>2009-11-15 03:04:14 -0500
commitf4131c6259b46bd84dcfcd3bb9ed08e99e2875a4 (patch)
tree024ca751eae993d58a86c4314751c02faf743fa8
parent6959450e567c1f17d3ce8489099fc56c3721d577 (diff)
x86: Make calgary_iommu_init() static
This makes calgary_iommu_init() static and moves it to remove the forward declaration. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Cc: muli@il.ibm.com LKML-Reference: <20091114212603U.fujita.tomonori@lab.ntt.co.jp> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--arch/x86/kernel/pci-calgary_64.c38
1 files changed, 18 insertions, 20 deletions
diff --git a/arch/x86/kernel/pci-calgary_64.c b/arch/x86/kernel/pci-calgary_64.c
index 833f491440b9..c84ad037f586 100644
--- a/arch/x86/kernel/pci-calgary_64.c
+++ b/arch/x86/kernel/pci-calgary_64.c
@@ -1345,7 +1345,24 @@ static void __init get_tce_space_from_tar(void)
1345 return; 1345 return;
1346} 1346}
1347 1347
1348int __init calgary_iommu_init(void); 1348static int __init calgary_iommu_init(void)
1349{
1350 int ret;
1351
1352 /* ok, we're trying to use Calgary - let's roll */
1353 printk(KERN_INFO "PCI-DMA: Using Calgary IOMMU\n");
1354
1355 ret = calgary_init();
1356 if (ret) {
1357 printk(KERN_ERR "PCI-DMA: Calgary init failed %d, "
1358 "falling back to no_iommu\n", ret);
1359 return ret;
1360 }
1361
1362 bad_dma_address = 0x0;
1363
1364 return 0;
1365}
1349 1366
1350void __init detect_calgary(void) 1367void __init detect_calgary(void)
1351{ 1368{
@@ -1458,25 +1475,6 @@ cleanup:
1458 } 1475 }
1459} 1476}
1460 1477
1461int __init calgary_iommu_init(void)
1462{
1463 int ret;
1464
1465 /* ok, we're trying to use Calgary - let's roll */
1466 printk(KERN_INFO "PCI-DMA: Using Calgary IOMMU\n");
1467
1468 ret = calgary_init();
1469 if (ret) {
1470 printk(KERN_ERR "PCI-DMA: Calgary init failed %d, "
1471 "falling back to no_iommu\n", ret);
1472 return ret;
1473 }
1474
1475 bad_dma_address = 0x0;
1476
1477 return 0;
1478}
1479
1480static int __init calgary_parse_options(char *p) 1478static int __init calgary_parse_options(char *p)
1481{ 1479{
1482 unsigned int bridge; 1480 unsigned int bridge;