浏览代码

pci: Properly configure prefetchable memory region

Forcibly set hose->pci_prefetch to NULL to make sure it will be setup.
This will help if for any reason callers didn't make sure themselves to
NULL the field.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Thierry Reding 11 年之前
父节点
当前提交
010c480bbf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/pci/pci_auto.c

+ 1 - 1
drivers/pci/pci_auto.c

@@ -297,7 +297,7 @@ void pciauto_config_init(struct pci_controller *hose)
 {
 	int i;
 
-	hose->pci_io = hose->pci_mem = NULL;
+	hose->pci_io = hose->pci_mem = hose->pci_prefetch = NULL;
 
 	for (i = 0; i < hose->region_count; i++) {
 		switch(hose->regions[i].flags) {