Commit 22b6e590 authored by Christian Krafft's avatar Christian Krafft Committed by Paul Mackerras

[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: default avatarChristian Krafft <krafft@de.ibm.com>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 18414ec0
...@@ -115,6 +115,7 @@ static struct sysdev_attribute attr_spu_temperature = { ...@@ -115,6 +115,7 @@ static struct sysdev_attribute attr_spu_temperature = {
static struct attribute *spu_attributes[] = { static struct attribute *spu_attributes[] = {
&attr_spu_temperature.attr, &attr_spu_temperature.attr,
NULL,
}; };
static struct attribute_group spu_attribute_group = { static struct attribute_group spu_attribute_group = {
...@@ -135,6 +136,7 @@ static struct sysdev_attribute attr_ppe_temperature1 = { ...@@ -135,6 +136,7 @@ static struct sysdev_attribute attr_ppe_temperature1 = {
static struct attribute *ppe_attributes[] = { static struct attribute *ppe_attributes[] = {
&attr_ppe_temperature0.attr, &attr_ppe_temperature0.attr,
&attr_ppe_temperature1.attr, &attr_ppe_temperature1.attr,
NULL,
}; };
static struct attribute_group ppe_attribute_group = { static struct attribute_group ppe_attribute_group = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment