aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/xen/pci-swiotlb-xen.c
diff options
context:
space:
mode:
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>2013-11-04 13:11:54 -0500
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2013-11-08 15:21:44 -0500
commit92c0fd17c090238660ceb8fed95f58b67907eb3e (patch)
tree157cecbcc515e2cbf58c1b7b8958903c0abf1616 /arch/x86/xen/pci-swiotlb-xen.c
parentfbd989b1d73e3b3565dad5227a581e6f456c895f (diff)
pci-swiotlb-xen: call pci_request_acs only ifdef CONFIG_PCI
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'arch/x86/xen/pci-swiotlb-xen.c')
-rw-r--r--arch/x86/xen/pci-swiotlb-xen.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/xen/pci-swiotlb-xen.c b/arch/x86/xen/pci-swiotlb-xen.c
index 969570491c39..0e98e5d241d0 100644
--- a/arch/x86/xen/pci-swiotlb-xen.c
+++ b/arch/x86/xen/pci-swiotlb-xen.c
@@ -75,8 +75,10 @@ void __init pci_xen_swiotlb_init(void)
75 xen_swiotlb_init(1, true /* early */); 75 xen_swiotlb_init(1, true /* early */);
76 dma_ops = &xen_swiotlb_dma_ops; 76 dma_ops = &xen_swiotlb_dma_ops;
77 77
78#ifdef CONFIG_PCI
78 /* Make sure ACS will be enabled */ 79 /* Make sure ACS will be enabled */
79 pci_request_acs(); 80 pci_request_acs();
81#endif
80 } 82 }
81} 83}
82 84
@@ -92,8 +94,10 @@ int pci_xen_swiotlb_init_late(void)
92 return rc; 94 return rc;
93 95
94 dma_ops = &xen_swiotlb_dma_ops; 96 dma_ops = &xen_swiotlb_dma_ops;
97#ifdef CONFIG_PCI
95 /* Make sure ACS will be enabled */ 98 /* Make sure ACS will be enabled */
96 pci_request_acs(); 99 pci_request_acs();
100#endif
97 101
98 return 0; 102 return 0;
99} 103}