git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5401817
)
powerpc: Use of_find_node_with_property() in cell_iommu_fixed_mapping_init()
author
Michael Ellerman
<michael@ellerman.id.au>
Wed, 12 Nov 2008 18:20:40 +0000
(18:20 +0000)
committer
Paul Mackerras
<paulus@samba.org>
Wed, 19 Nov 2008 05:05:02 +0000
(16:05 +1100)
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/iommu.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/platforms/cell/iommu.c
b/arch/powerpc/platforms/cell/iommu.c
index
3168272
..
86db4dd
100644
(file)
--- a/
arch/powerpc/platforms/cell/iommu.c
+++ b/
arch/powerpc/platforms/cell/iommu.c
@@
-1053,10
+1053,7
@@
static int __init cell_iommu_fixed_mapping_init(void)
}
/* We must have dma-ranges properties for fixed mapping to work */
}
/* We must have dma-ranges properties for fixed mapping to work */
- for (np = NULL; (np = of_find_all_nodes(np));) {
- if (of_find_property(np, "dma-ranges", NULL))
- break;
- }
+ np = of_find_node_with_property(NULL, "dma-ranges");
of_node_put(np);
if (!np) {
of_node_put(np);
if (!np) {