This is a note to let you know that I've just added the patch titled hwmon: (s3c) 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-s3c-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 <sta...@kernel.org> know about it. >From b1e698db0939b04602ded2a2196ff69c92b49378 Mon Sep 17 00:00:00 2001 From: Guenter Roeck <guenter.ro...@ericsson.com> Date: Tue, 24 May 2011 12:34:55 -0700 Subject: hwmon: (s3c) Initialize sysfs attributes From: Guenter Roeck <guenter.ro...@ericsson.com> commit b1e698db0939b04602ded2a2196ff69c92b49378 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 <guenter.ro...@ericsson.com> Acked-by: Jean Delvare <kh...@linux-fr.org> Signed-off-by: Greg Kroah-Hartman <gre...@suse.de> --- drivers/hwmon/s3c-hwmon.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/hwmon/s3c-hwmon.c +++ b/drivers/hwmon/s3c-hwmon.c @@ -232,6 +232,7 @@ static int s3c_hwmon_create_attr(struct attr = &attrs->in; attr->index = channel; + sysfs_attr_init(&attr->dev_attr.attr); attr->dev_attr.attr.name = attrs->in_name; attr->dev_attr.attr.mode = S_IRUGO; attr->dev_attr.show = s3c_hwmon_ch_show; @@ -249,6 +250,7 @@ static int s3c_hwmon_create_attr(struct attr = &attrs->label; attr->index = channel; + sysfs_attr_init(&attr->dev_attr.attr); attr->dev_attr.attr.name = attrs->label_name; attr->dev_attr.attr.mode = S_IRUGO; attr->dev_attr.show = s3c_hwmon_label_show; Patches currently in stable-queue which might be from guenter.ro...@ericsson.com 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 stable@linux.kernel.org http://linux.kernel.org/mailman/listinfo/stable