From cc5213163cd5f692e1f1304cc94d188a3fd478ae Mon Sep 17 00:00:00 2001 From: Michael Ellerman Date: Wed, 12 Nov 2008 18:20:40 +0000 Subject: [PATCH] --- yaml --- r: 123033 b: refs/heads/master c: ba82efbd3b48cb2a0e03c043911ce44c28f2825a h: refs/heads/master i: 123031: 4a3572d9003c9ca0c165a44cefa74a878960073b v: v3 --- [refs] | 2 +- trunk/arch/powerpc/platforms/cell/iommu.c | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 24a2bfe8cda8..0604e8da500e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 54018178ef05e32f140158cb7d7770b66042d131 +refs/heads/master: ba82efbd3b48cb2a0e03c043911ce44c28f2825a diff --git a/trunk/arch/powerpc/platforms/cell/iommu.c b/trunk/arch/powerpc/platforms/cell/iommu.c index 3168272ab0d7..86db4dd170a0 100644 --- a/trunk/arch/powerpc/platforms/cell/iommu.c +++ b/trunk/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 */ - 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) {