projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
408e83a
)
[POWERPC] cell: Don't cast the result of of_get_property()
author
Jeremy Kerr
<
[email protected]
>
Fri, 14 Sep 2007 05:46:40 +0000
(15:46 +1000)
committer
Paul Mackerras
<
[email protected]
>
Sat, 22 Sep 2007 04:49:22 +0000
(14:49 +1000)
The cast to u32 * isn't required, of_get_property returns a void *.
Signed-off-by: Jeremy Kerr <
[email protected]
>
Signed-off-by: Paul Mackerras <
[email protected]
>
arch/powerpc/platforms/cell/spu_manage.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/platforms/cell/spu_manage.c
b/arch/powerpc/platforms/cell/spu_manage.c
index 0e14f532500e9a993c5480025cab92a58f54cfda..1b010707488d5d913cd0da6eaf5d3f26a60c6eca 100644
(file)
--- a/
arch/powerpc/platforms/cell/spu_manage.c
+++ b/
arch/powerpc/platforms/cell/spu_manage.c
@@
-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;
}