[Cbe-oss-dev] Subject: cbe_thermal: fix initialization of sysfs attribute_group

Christian Krafft krafft at de.ibm.com
Fri Dec 8 05:01:16 EST 2006


This patch adds NULL to the initialization of the attribute_groups.

Signed-off-by: Christian Krafft <krafft at de.ibm.com>

Index: linux-2.6.19-rc6/arch/powerpc/platforms/cell/cbe_thermal.c
===================================================================
--- linux-2.6.19-rc6.orig/arch/powerpc/platforms/cell/cbe_thermal.c
+++ linux-2.6.19-rc6/arch/powerpc/platforms/cell/cbe_thermal.c
@@ -115,6 +115,7 @@ static struct sysdev_attribute attr_spu_
 
 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_
 static struct attribute *ppe_attributes[] = {
 	&attr_ppe_temperature0.attr,
 	&attr_ppe_temperature1.attr,
+	NULL,
 };
 
 static struct attribute_group ppe_attribute_group = {


-- 
Mit freundlichen Grüssen,
kind regards,

Christian Krafft
IBM Systems & Technology Group, 
Linux Kernel Development
IT Specialist



More information about the cbe-oss-dev mailing list