diff options
author | Christian Krafft <krafft@de.ibm.com> | 2006-12-07 13:01:16 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-12-08 01:21:02 -0500 |
commit | 22b6e590478ae8757f0411cf16a24c25d8dfea86 (patch) | |
tree | ce1ca9303d7031e0d1f9a4a3b71b8cec162a8c4a /arch/powerpc/platforms | |
parent | 18414ec0b56783f625edb95a9499bcb0ef12d6b8 (diff) |
[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')
-rw-r--r-- | arch/powerpc/platforms/cell/cbe_thermal.c | 2 |
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 = { | |||
115 | 115 | ||
116 | static struct attribute *spu_attributes[] = { | 116 | static struct attribute *spu_attributes[] = { |
117 | &attr_spu_temperature.attr, | 117 | &attr_spu_temperature.attr, |
118 | NULL, | ||
118 | }; | 119 | }; |
119 | 120 | ||
120 | static struct attribute_group spu_attribute_group = { | 121 | static struct attribute_group spu_attribute_group = { |
@@ -135,6 +136,7 @@ static struct sysdev_attribute attr_ppe_temperature1 = { | |||
135 | static struct attribute *ppe_attributes[] = { | 136 | static struct attribute *ppe_attributes[] = { |
136 | &attr_ppe_temperature0.attr, | 137 | &attr_ppe_temperature0.attr, |
137 | &attr_ppe_temperature1.attr, | 138 | &attr_ppe_temperature1.attr, |
139 | NULL, | ||
138 | }; | 140 | }; |
139 | 141 | ||
140 | static struct attribute_group ppe_attribute_group = { | 142 | static struct attribute_group ppe_attribute_group = { |