Skip to content

Commit

Permalink
[POWERPC] cbe_thermal: Fix initialization of sysfs attribute_group
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christian Krafft authored and Paul Mackerras committed Dec 8, 2006
1 parent 18414ec commit 22b6e59
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/powerpc/platforms/cell/cbe_thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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 = {
Expand Down

0 comments on commit 22b6e59

Please sign in to comment.