aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/cell/cbe_thermal.c
diff options
context:
space:
mode:
authorChristian Krafft <krafft@de.ibm.com>2006-12-07 19:01:16 +0100
committerPaul Mackerras <paulus@samba.org>2006-12-08 17:21:02 +1100
commit22b6e590478ae8757f0411cf16a24c25d8dfea86 (patch)
treece1ca9303d7031e0d1f9a4a3b71b8cec162a8c4a /arch/powerpc/platforms/cell/cbe_thermal.c
parent[POWERPC] Remove QE header files from lite5200.c (diff)
downloadlinux-dev-22b6e590478ae8757f0411cf16a24c25d8dfea86.tar.xz
linux-dev-22b6e590478ae8757f0411cf16a24c25d8dfea86.zip
[POWERPC] cbe_thermal: Fix initialization of sysfs attribute_group
This patch adds NULL to the initialization of the attribute_groups. The spu_attributes and ppe_attributes arrays are arrays of pointers that need to be terminated with a NULL entry. Signed-off-by: Christian Krafft <krafft@de.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/cell/cbe_thermal.c')
-rw-r--r--arch/powerpc/platforms/cell/cbe_thermal.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/cell/cbe_thermal.c b/arch/powerpc/platforms/cell/cbe_thermal.c
index 616a0a3fd0e2..70e0d968d30f 100644
--- a/arch/powerpc/platforms/cell/cbe_thermal.c
+++ b/arch/powerpc/platforms/cell/cbe_thermal.c
@@ -115,6 +115,7 @@ static struct sysdev_attribute attr_spu_temperature = {
static struct attribute *spu_attributes[] = {
&attr_spu_temperature.attr,
+ NULL,
};
static struct attribute_group spu_attribute_group = {
@@ -135,6 +136,7 @@ static struct sysdev_attribute attr_ppe_temperature1 = {
static struct attribute *ppe_attributes[] = {
&attr_ppe_temperature0.attr,
&attr_ppe_temperature1.attr,
+ NULL,
};
static struct attribute_group ppe_attribute_group = {