From patchwork Mon Mar 22 14:45:03 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Senozhatsky X-Patchwork-Id: 87437 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 o2MEiZkf019214 for ; Mon, 22 Mar 2010 14:44:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752956Ab0CVOoE (ORCPT ); Mon, 22 Mar 2010 10:44:04 -0400 Received: from mail-ww0-f46.google.com ([74.125.82.46]:49191 "EHLO mail-ww0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750861Ab0CVOoB (ORCPT ); Mon, 22 Mar 2010 10:44:01 -0400 Received: by wwe15 with SMTP id 15so3292069wwe.19 for ; Mon, 22 Mar 2010 07:43:59 -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=PQkAideTLB6edzRxvBlT0Wiq2lQBVhvJjYqqnFqV7vQ=; b=Lx0X1qHZX4XtZa1Ltmlm71co9upraj3L+EvwdOPtft+hRkiwETEekzKxwo+G0z7OFi XmQZQd1Ii533vT1tf8MmEIvqDT9J6FN0wefymWZ9GzpfGkZf3BqLAAC2XD/KeH+a40lz 3g0WB+xzM5+WUlV3HcLiQukox2Vu/rs5TlMsU= 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=Ut4mAnrlp8SHRLMr1Ls/nsgim4xg78CXvG99PTHM9acH5dxkkxli/zklMsqprk/AuM NXGMsoFR0LrWOnsJFfDUdqo9/pnM6+d9AVCTmprIESJtNuqvqRndA8n3Vgm79oKArYJT SKsGbrkUF7yA1WoOSutMeH2WWzSqERqSbAKlk= Received: by 10.216.91.18 with SMTP id g18mr1741961wef.203.1269269039341; Mon, 22 Mar 2010 07:43:59 -0700 (PDT) Received: from localhost ([86.57.255.94]) by mx.google.com with ESMTPS id g11sm10186098gve.18.2010.03.22.07.43.57 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 22 Mar 2010 07:43:58 -0700 (PDT) Date: Mon, 22 Mar 2010 16:45:03 +0200 From: Sergey Senozhatsky To: Wolfram Sang Cc: Greg KH , "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 V2 Message-ID: <20100322144503.GD3388@swordfish.minsk.epam.com> References: <20100309102754.GA3316@swordfish.minsk.epam.com> <20100309141826.GC28606@suse.de> <20100322135235.GA3388@swordfish.minsk.epam.com> <20100322140713.GB1076@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20100322140713.GB1076@pengutronix.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 14:44: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;