diff options
Diffstat (limited to 'arch/powerpc/platforms/cell/setup.c')
-rw-r--r-- | arch/powerpc/platforms/cell/setup.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/powerpc/platforms/cell/setup.c b/arch/powerpc/platforms/cell/setup.c index 7d31b8d14661..e2e1371a71e2 100644 --- a/arch/powerpc/platforms/cell/setup.c +++ b/arch/powerpc/platforms/cell/setup.c | |||
@@ -131,7 +131,7 @@ static int cell_setup_phb(struct pci_controller *phb) | |||
131 | 131 | ||
132 | np = phb->dn; | 132 | np = phb->dn; |
133 | model = of_get_property(np, "model", NULL); | 133 | model = of_get_property(np, "model", NULL); |
134 | if (model == NULL || strcmp(np->name, "pci")) | 134 | if (model == NULL || !of_node_name_eq(np, "pci")) |
135 | return 0; | 135 | return 0; |
136 | 136 | ||
137 | /* Setup workarounds for spider */ | 137 | /* Setup workarounds for spider */ |
@@ -168,8 +168,7 @@ static int __init cell_publish_devices(void) | |||
168 | * platform devices for the PCI host bridges | 168 | * platform devices for the PCI host bridges |
169 | */ | 169 | */ |
170 | for_each_child_of_node(root, np) { | 170 | for_each_child_of_node(root, np) { |
171 | if (np->type == NULL || (strcmp(np->type, "pci") != 0 && | 171 | if (!of_node_is_type(np, "pci") && !of_node_is_type(np, "pciex")) |
172 | strcmp(np->type, "pciex") != 0)) | ||
173 | continue; | 172 | continue; |
174 | of_platform_device_create(np, NULL, NULL); | 173 | of_platform_device_create(np, NULL, NULL); |
175 | } | 174 | } |