From patchwork Mon Mar 22 13:52:35 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Senozhatsky X-Patchwork-Id: 87429 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 o2MDpZU9029397 for ; Mon, 22 Mar 2010 13:51:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754816Ab0CVNve (ORCPT ); Mon, 22 Mar 2010 09:51:34 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:43071 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754802Ab0CVNvd (ORCPT ); Mon, 22 Mar 2010 09:51:33 -0400 Received: by wyb38 with SMTP id 38so2477906wyb.19 for ; Mon, 22 Mar 2010 06:51:31 -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=zaW/dnqzxIuDV72SRc2UKqyvP145uIj87SLvzyIvmRg=; b=wv8ug8xASzsYbmwp2URW7C4NfD/Qwruj18X9jAgcnfByh+4R/KDeDOUqAipJHoDfDN 9iobqkuEdbAlD7cUpWIC/bzIy7cXhoV5KkLhE9+ImWRX29IZiBR+0ub4gWDbHEbhbFZg x16TRFcwk2YxXvYBRG+LAkgw2thresGiO8MVA= 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=BXiiR6sz3TURAEWBWngtTtt3TEKNFTl9TW3jWbyfvAbY2E49j3quI9n3Bw0z7yc1rs cj/UjcywmR4TYrr+2xzD8Wppn5DyInQThWjLRHd+h7INmJeye7DuKiuMyFfdfvdfLi3+ V1vsUPeJaFj4tk2wm30KMq5CqMZkfnX2DInEM= Received: by 10.216.89.84 with SMTP id b62mr2395279wef.226.1269265891480; Mon, 22 Mar 2010 06:51:31 -0700 (PDT) Received: from localhost ([86.57.255.94]) by mx.google.com with ESMTPS id i35sm3064858gve.11.2010.03.22.06.51.30 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 22 Mar 2010 06:51:30 -0700 (PDT) Date: Mon, 22 Mar 2010 15:52:35 +0200 From: Sergey Senozhatsky To: Greg KH Cc: Wolfram Sang , "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: <20100322135235.GA3388@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:51:35 +0000 (UTC) diff --git a/drivers/thermal/thermal_sys.c b/drivers/thermal/thermal_sys.c index 5066de5..ecb181d 100644 --- a/drivers/thermal/thermal_sys.c +++ b/drivers/thermal/thermal_sys.c @@ -505,6 +505,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 +518,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) @@ -725,6 +727,7 @@ int thermal_zone_bind_cooling_device(struct thermal_zone_device *tz, goto release_idr; sprintf(dev->attr_name, "cdev%d_trip_point", dev->id); + sysfs_attr_init(&dev->attr.attr); dev->attr.attr.name = dev->attr_name; dev->attr.attr.mode = 0444; dev->attr.show = thermal_cooling_device_trip_point_show;