aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of/of_pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/of/of_pci.c')
-rw-r--r--drivers/of/of_pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/of/of_pci.c b/drivers/of/of_pci.c
index 60dc36c865b5..110fece2ff53 100644
--- a/drivers/of/of_pci.c
+++ b/drivers/of/of_pci.c
@@ -140,7 +140,7 @@ int of_pci_get_host_bridge_resources(struct device_node *dev,
140 unsigned char busno, unsigned char bus_max, 140 unsigned char busno, unsigned char bus_max,
141 struct list_head *resources, resource_size_t *io_base) 141 struct list_head *resources, resource_size_t *io_base)
142{ 142{
143 struct pci_host_bridge_window *window; 143 struct resource_entry *window;
144 struct resource *res; 144 struct resource *res;
145 struct resource *bus_range; 145 struct resource *bus_range;
146 struct of_pci_range range; 146 struct of_pci_range range;
@@ -226,7 +226,7 @@ int of_pci_get_host_bridge_resources(struct device_node *dev,
226conversion_failed: 226conversion_failed:
227 kfree(res); 227 kfree(res);
228parse_failed: 228parse_failed:
229 list_for_each_entry(window, resources, list) 229 resource_list_for_each_entry(window, resources)
230 kfree(window->res); 230 kfree(window->res);
231 pci_free_resource_list(resources); 231 pci_free_resource_list(resources);
232 kfree(bus_range); 232 kfree(bus_range);