diff options
author | David S. Miller <davem@davemloft.net> | 2008-10-11 15:39:35 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-11 15:39:35 -0400 |
commit | 56c5d900dbb8e042bfad035d18433476931d8f93 (patch) | |
tree | 00b793965beeef10db03e0ff021d2d965c410759 /arch/sparc64/kernel/of_device.c | |
parent | 4dd95b63ae25c5cad6986829b5e8788e9faa0330 (diff) | |
parent | ead9d23d803ea3a73766c3cb27bf7563ac8d7266 (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6
Conflicts:
sound/core/memalloc.c
Diffstat (limited to 'arch/sparc64/kernel/of_device.c')
-rw-r--r-- | arch/sparc64/kernel/of_device.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/sparc64/kernel/of_device.c b/arch/sparc64/kernel/of_device.c index ef05d14bd7f1..0f616ae3246c 100644 --- a/arch/sparc64/kernel/of_device.c +++ b/arch/sparc64/kernel/of_device.c | |||
@@ -192,7 +192,7 @@ static unsigned long of_bus_default_get_flags(const u32 *addr, unsigned long fla | |||
192 | 192 | ||
193 | static int of_bus_pci_match(struct device_node *np) | 193 | static int of_bus_pci_match(struct device_node *np) |
194 | { | 194 | { |
195 | if (!strcmp(np->type, "pci") || !strcmp(np->type, "pciex")) { | 195 | if (!strcmp(np->name, "pci")) { |
196 | const char *model = of_get_property(np, "model", NULL); | 196 | const char *model = of_get_property(np, "model", NULL); |
197 | 197 | ||
198 | if (model && !strcmp(model, "SUNW,simba")) | 198 | if (model && !strcmp(model, "SUNW,simba")) |
@@ -223,7 +223,7 @@ static int of_bus_simba_match(struct device_node *np) | |||
223 | /* Treat PCI busses lacking ranges property just like | 223 | /* Treat PCI busses lacking ranges property just like |
224 | * simba. | 224 | * simba. |
225 | */ | 225 | */ |
226 | if (!strcmp(np->type, "pci") || !strcmp(np->type, "pciex")) { | 226 | if (!strcmp(np->name, "pci")) { |
227 | if (!of_find_property(np, "ranges", NULL)) | 227 | if (!of_find_property(np, "ranges", NULL)) |
228 | return 1; | 228 | return 1; |
229 | } | 229 | } |
@@ -460,7 +460,7 @@ static int __init use_1to1_mapping(struct device_node *pp) | |||
460 | * it lacks a ranges property, and this will include | 460 | * it lacks a ranges property, and this will include |
461 | * cases like Simba. | 461 | * cases like Simba. |
462 | */ | 462 | */ |
463 | if (!strcmp(pp->type, "pci") || !strcmp(pp->type, "pciex")) | 463 | if (!strcmp(pp->name, "pci")) |
464 | return 0; | 464 | return 0; |
465 | 465 | ||
466 | return 1; | 466 | return 1; |
@@ -745,8 +745,7 @@ static unsigned int __init build_one_device_irq(struct of_device *op, | |||
745 | break; | 745 | break; |
746 | } | 746 | } |
747 | } else { | 747 | } else { |
748 | if (!strcmp(pp->type, "pci") || | 748 | if (!strcmp(pp->name, "pci")) { |
749 | !strcmp(pp->type, "pciex")) { | ||
750 | unsigned int this_orig_irq = irq; | 749 | unsigned int this_orig_irq = irq; |
751 | 750 | ||
752 | irq = pci_irq_swizzle(dp, pp, irq); | 751 | irq = pci_irq_swizzle(dp, pp, irq); |