Skip to content

Commit

Permalink
[POWERPC] cell: Don't cast the result of of_get_property()
Browse files Browse the repository at this point in the history
The cast to u32 * isn't required, of_get_property returns a void *.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Jeremy Kerr authored and Paul Mackerras committed Sep 22, 2007
1 parent 408e83a commit fb8299e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/powerpc/platforms/cell/spu_manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,10 +377,10 @@ static int qs20_reg_memory[QS20_SPES_PER_BE] = { 1, 1, 0, 0, 0, 0, 0, 0 };
static struct spu *spu_lookup_reg(int node, u32 reg)
{
struct spu *spu;
u32 *spu_reg;
const u32 *spu_reg;

list_for_each_entry(spu, &cbe_spu_info[node].spus, cbe_list) {
spu_reg = (u32*)of_get_property(spu_devnode(spu), "reg", NULL);
spu_reg = of_get_property(spu_devnode(spu), "reg", NULL);
if (*spu_reg == reg)
return spu;
}
Expand Down

0 comments on commit fb8299e

Please sign in to comment.