summaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms/cell/spu_manage.c
diff options
context:
space:
mode:
authorChristian Krafft <krafft@de.ibm.com>2007-08-22 21:01:25 +0400
committerPaul Mackerras <paulus@samba.org>2007-08-25 10:58:26 +0400
commitfa7f374bbf6d8e5fc7dd281a62498041066aaf43 (patch)
treefcc2933db837414f6aa81a589a2788adc9489fd3 /arch/powerpc/platforms/cell/spu_manage.c
parentdfa70f81a05fa857fb1428ac2a88da84ecd50dd9 (diff)
downloadlinux-fa7f374bbf6d8e5fc7dd281a62498041066aaf43.tar.xz
[POWERPC] spu_manage: Use newer physical-id attribute
Legacy device tree used the reg property for the physical id of an spe. On newer device tree layouts the reg property contains the "correct" value in the reg attribute. So there has been intoduced the "physical-id" on newer devicetree layouts. The id is stored by spu_manage into the spu struct as spe_id. cbe_thermal has been changed to use the spu->spe_id. There's no need for the thermal code to check devicetree attributes for itself. Signed-off-by: Christian Krafft <krafft@de.ibm.com> Cc: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/cell/spu_manage.c')
-rw-r--r--arch/powerpc/platforms/cell/spu_manage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/cell/spu_manage.c b/arch/powerpc/platforms/cell/spu_manage.c
index 5eb88346181a..7c0668a9dcc7 100644
--- a/arch/powerpc/platforms/cell/spu_manage.c
+++ b/arch/powerpc/platforms/cell/spu_manage.c
@@ -48,7 +48,7 @@ static u64 __init find_spu_unit_number(struct device_node *spe)
{
const unsigned int *prop;
int proplen;
- prop = of_get_property(spe, "unit-id", &proplen);
+ prop = of_get_property(spe, "physical-id", &proplen);
if (proplen == 4)
return (u64)*prop;