This is a note to let you know that I've just added the patch titled
hwmon: (ibmpex) Initialize sysfs attributes
to the 2.6.39-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
hwmon-ibmpex-initialize-sysfs-attributes.patch
and it can be found in the queue-2.6.39 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.
>From fb794e0f7153918c33f2300986d995524ab711cf Mon Sep 17 00:00:00 2001
From: Guenter Roeck <[email protected]>
Date: Tue, 24 May 2011 12:34:12 -0700
Subject: hwmon: (ibmpex) Initialize sysfs attributes
From: Guenter Roeck <[email protected]>
commit fb794e0f7153918c33f2300986d995524ab711cf upstream.
Initialize dynamically allocated sysfs attributes before device_create_file()
call to suppress lockdep_init_map() warning if lockdep debugging is enabled.
Signed-off-by: Guenter Roeck <[email protected]>
Acked-by: Jean Delvare <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
drivers/hwmon/ibmpex.c | 1 +
1 file changed, 1 insertion(+)
--- a/drivers/hwmon/ibmpex.c
+++ b/drivers/hwmon/ibmpex.c
@@ -358,6 +358,7 @@ static int create_sensor(struct ibmpex_b
else if (type == POWER_SENSOR)
sprintf(n, power_sensor_name_templates[func], "power", counter);
+ sysfs_attr_init(&data->sensors[sensor].attr[func].dev_attr.attr);
data->sensors[sensor].attr[func].dev_attr.attr.name = n;
data->sensors[sensor].attr[func].dev_attr.attr.mode = S_IRUGO;
data->sensors[sensor].attr[func].dev_attr.show = ibmpex_show_sensor;
Patches currently in stable-queue which might be from
[email protected] are
queue-2.6.39/hwmon-ibmaem-initialize-sysfs-attributes.patch
queue-2.6.39/hwmon-s3c-initialize-sysfs-attributes.patch
queue-2.6.39/hwmon-ibmpex-initialize-sysfs-attributes.patch
_______________________________________________
stable mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/stable