浏览代码

xen-platform: Fix compile errors if CONFIG_PCI is not enabled.

drivers/xen/platform-pci.c:127: error: implicit declaration of function
          'pci_request_region'
drivers/xen/platform-pci.c:165: error: implicit declaration of function
          'pci_release_region'

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Konrad Rzeszutek Wilk 14 年之前
父节点
当前提交
e528db5b39
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/xen/Kconfig

+ 1 - 1
drivers/xen/Kconfig

@@ -64,7 +64,7 @@ config XEN_SYS_HYPERVISOR
 
 
 config XEN_PLATFORM_PCI
 config XEN_PLATFORM_PCI
 	tristate "xen platform pci device driver"
 	tristate "xen platform pci device driver"
-	depends on XEN_PVHVM
+	depends on XEN_PVHVM && PCI
 	default m
 	default m
 	help
 	help
 	  Driver for the Xen PCI Platform device: it is responsible for
 	  Driver for the Xen PCI Platform device: it is responsible for