diff options
author | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2013-11-04 19:11:54 +0100 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2013-11-08 21:21:44 +0100 |
commit | 92c0fd17c090238660ceb8fed95f58b67907eb3e (patch) | |
tree | 157cecbcc515e2cbf58c1b7b8958903c0abf1616 /arch/x86/xen | |
parent | arm: make SWIOTLB available (diff) | |
download | linux-92c0fd17c090238660ceb8fed95f58b67907eb3e.tar.xz linux-92c0fd17c090238660ceb8fed95f58b67907eb3e.zip |
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')
-rw-r--r-- | arch/x86/xen/pci-swiotlb-xen.c | 4 |
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) xen_swiotlb_init(1, true /* early */); dma_ops = &xen_swiotlb_dma_ops; +#ifdef CONFIG_PCI /* Make sure ACS will be enabled */ pci_request_acs(); +#endif } } @@ -92,8 +94,10 @@ int pci_xen_swiotlb_init_late(void) return rc; dma_ops = &xen_swiotlb_dma_ops; +#ifdef CONFIG_PCI /* Make sure ACS will be enabled */ pci_request_acs(); +#endif return 0; } |