Commit 1d83ceb4 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] PCI: remove usage of pci_for_each_dev() in arch/ppc64/kernel/pci_dma.c

parent 5c9538a5
...@@ -724,7 +724,7 @@ void create_tce_tables_for_busesLP(struct list_head *bus_list) ...@@ -724,7 +724,7 @@ void create_tce_tables_for_busesLP(struct list_head *bus_list)
} }
void create_tce_tables(void) { void create_tce_tables(void) {
struct pci_dev *dev; struct pci_dev *dev = NULL;
struct device_node *dn, *mydn; struct device_node *dn, *mydn;
if (systemcfg->platform == PLATFORM_PSERIES_LPAR) { if (systemcfg->platform == PLATFORM_PSERIES_LPAR) {
...@@ -737,7 +737,7 @@ void create_tce_tables(void) { ...@@ -737,7 +737,7 @@ void create_tce_tables(void) {
* pci device_node. This means get_tce_table() won't need to search * pci device_node. This means get_tce_table() won't need to search
* up the device tree to find it. * up the device tree to find it.
*/ */
pci_for_each_dev(dev) { while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
mydn = dn = PCI_GET_DN(dev); mydn = dn = PCI_GET_DN(dev);
while (dn && dn->tce_table == NULL) while (dn && dn->tce_table == NULL)
dn = dn->parent; dn = dn->parent;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment