summaryrefslogtreecommitdiff
path: root/drivers/pci
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@gmail.com>2013-09-20 15:50:50 +0200
committerTom Rini <trini@ti.com>2013-10-07 08:21:23 -0400
commit010c480bbf9c3c2b4237a73242b4b3f7c9198114 (patch)
tree54a5283877951c44c9d9a1836f60ea12fc0d4b21 /drivers/pci
parentf833e790b47236115894c751d4e34070a4db62fd (diff)
downloadu-boot-imx-010c480bbf9c3c2b4237a73242b4b3f7c9198114.zip
u-boot-imx-010c480bbf9c3c2b4237a73242b4b3f7c9198114.tar.gz
u-boot-imx-010c480bbf9c3c2b4237a73242b4b3f7c9198114.tar.bz2
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>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/pci_auto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci_auto.c b/drivers/pci/pci_auto.c
index c4ed8ba..86ba6b5 100644
--- a/drivers/pci/pci_auto.c
+++ b/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) {