aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;