From patchwork Mon Mar 22 13:15:08 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Senozhatsky X-Patchwork-Id: 87424 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o2MDE9uM013062 for ; Mon, 22 Mar 2010 13:14:09 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754714Ab0CVNOI (ORCPT ); Mon, 22 Mar 2010 09:14:08 -0400 Received: from mail-ww0-f46.google.com ([74.125.82.46]:41050 "EHLO mail-ww0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754710Ab0CVNOF (ORCPT ); Mon, 22 Mar 2010 09:14:05 -0400 Received: by wwe15 with SMTP id 15so3221302wwe.19 for ; Mon, 22 Mar 2010 06:14:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=JTbogle9+x/wtoJot9VDdMILDcPqP7O8uONK9kY/YR0=; b=G6Eg39li8d83z4qqUExOdAYlNmt7E5FovvKTklV01Z1ZFfAhT5yN+Ax7reed9nS8py RS3XdMI1xT5m0n6+BnsLdiPkElkG3U+EU29i7WVLbc17IBDGSxpUZTwABGy5ginZgDGA UWXRAtwkCI3nrTzLXV14BgRAtaHVsJVJjPZaw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=WrOhpN03XObLfg+BH/FVbRi0dP8i9iU6u/H1btCLSd3OIdqMmmpiN9yAUiv+m9CNRi ZgCYxw+HV3b/VKw/6BZyKl7vQJGbZtWj2v8/lt96p9Z04sx2OjPvofHlA/PhpfeZRpDi 3TL66KrtF6m9fyzbLthFbrpiby4VhNBIjzf4g= Received: by 10.216.88.134 with SMTP id a6mr2500007wef.66.1269263643885; Mon, 22 Mar 2010 06:14:03 -0700 (PDT) Received: from localhost ([86.57.255.94]) by mx.google.com with ESMTPS id g11sm9897590gve.3.2010.03.22.06.14.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 22 Mar 2010 06:14:03 -0700 (PDT) Date: Mon, 22 Mar 2010 15:15:08 +0200 From: Sergey Senozhatsky To: Greg KH Cc: "Eric W. Biederman" , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, Lin Ming , Len Brown Subject: [PATCH] Fix key f70f4b50 not in .data in thermal_sys Message-ID: <20100322131508.GB3596@swordfish.minsk.epam.com> References: <20100309102754.GA3316@swordfish.minsk.epam.com> <20100309141826.GC28606@suse.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20100309141826.GC28606@suse.de> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 22 Mar 2010 13:14:09 +0000 (UTC) diff --git a/drivers/thermal/thermal_sys.c b/drivers/thermal/thermal_sys.c index 5066de5..a76a6ff 100644 --- a/drivers/thermal/thermal_sys.c +++ b/drivers/thermal/thermal_sys.c @@ -492,6 +492,7 @@ thermal_add_hwmon_sysfs(struct thermal_zone_device *tz) goto free_mem; } dev_set_drvdata(hwmon->device, hwmon); + sysfs_attr_init(&dev_attr_name.attr); result = device_create_file(hwmon->device, &dev_attr_name); if (result) goto unregister_hwmon_device; @@ -505,6 +506,7 @@ thermal_add_hwmon_sysfs(struct thermal_zone_device *tz) tz->temp_input.attr.attr.name = tz->temp_input.name; tz->temp_input.attr.attr.mode = 0444; tz->temp_input.attr.show = temp_input_show; + sysfs_attr_init(&tz->temp_input.attr.attr); result = device_create_file(hwmon->device, &tz->temp_input.attr); if (result) goto unregister_hwmon_device; @@ -517,6 +519,7 @@ thermal_add_hwmon_sysfs(struct thermal_zone_device *tz) tz->temp_crit.attr.attr.name = tz->temp_crit.name; tz->temp_crit.attr.attr.mode = 0444; tz->temp_crit.attr.show = temp_crit_show; + sysfs_attr_init(&tz->temp_crit.attr.attr); result = device_create_file(hwmon->device, &tz->temp_crit.attr); if (result)