From patchwork Thu May 12 17:11:02 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raffaele Recalcati X-Patchwork-Id: 780562 Received: from devils.ext.ti.com (devils.ext.ti.com [198.47.26.153]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p4CHDWO2025887 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 12 May 2011 17:13:53 GMT Received: from dlep33.itg.ti.com ([157.170.170.112]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id p4CHCI0V028328 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 12 May 2011 12:12:18 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by dlep33.itg.ti.com (8.13.7/8.13.7) with ESMTP id p4CHCHpG003298; Thu, 12 May 2011 12:12:17 -0500 (CDT) Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id B289480626; Thu, 12 May 2011 12:12:17 -0500 (CDT) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp51.itg.ti.com (dflp51.itg.ti.com [128.247.22.94]) by linux.omap.com (Postfix) with ESMTP id C2D978062F for ; Thu, 12 May 2011 12:11:22 -0500 (CDT) Received: from red.ext.ti.com (localhost [127.0.0.1]) by dflp51.itg.ti.com (8.13.7/8.13.7) with ESMTP id p4CHBLF5024953 for ; Thu, 12 May 2011 12:11:21 -0500 (CDT) Received: from psmtp.com (na3sys009amx160.postini.com [74.125.149.86]) by red.ext.ti.com (8.13.7/8.13.7) with SMTP id p4CHBK3n002570 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 12 May 2011 12:11:21 -0500 Received: from mail-ww0-f41.google.com ([74.125.82.41]) (using TLSv1) by na3sys009amx160.postini.com ([74.125.148.10]) with SMTP; Thu, 12 May 2011 13:11:21 EDT Received: by wwi18 with SMTP id 18so5599970wwi.4 for ; Thu, 12 May 2011 10:11:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=7NIQ6ij6k04AazZDCUczPNGaP1qZFAbp5APLPc9lNjo=; b=brmfrkPhLvCzoMS7imsNbabyKNoW7MtMRLTLWjWQG0OJG22ONKAec9OboucPaYZiY8 5W0ZRdphjIDeWINKJ0wuQL29If7aV+0hNIs7SnlFMjK92AfSpShc5tq63hhuK6LI7bCT bvAsXCLlTGkCIi2P1d6GeqswJFcBF9FeeVV7E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=SQ3bkmDqJ9vnyOW/pFq4D7XVymCbt3TcC18U2nNvzHkphRvWunWmFnfQ5bDFv5zjiA nUHsnANVQPyoRpBuqxp6T5oO3V6jMkF9NLVanLDPoSt4NznMK9LbR9IMP0Mzlt2jJfNP fSpzESRsTQ2QX0JP3vqk2NT0V0W3gStJjcqR8= Received: by 10.216.81.203 with SMTP id m53mr86214wee.9.1305220279291; Thu, 12 May 2011 10:11:19 -0700 (PDT) Received: from localhost.localdomain (host41-16-static.112-2-b.business.telecomitalia.it [2.112.16.41]) by mx.google.com with ESMTPS id c43sm719446weo.18.2011.05.12.10.11.17 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 12 May 2011 10:11:18 -0700 (PDT) From: Raffaele Recalcati To: linux-pm@lists.linux-foundation.org Subject: [PATCH 1/4] export bus_kset Date: Thu, 12 May 2011 19:11:02 +0200 Message-Id: <1305220265-9020-2-git-send-email-lamiaposta71@gmail.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1305220265-9020-1-git-send-email-lamiaposta71@gmail.com> References: <1305220265-9020-1-git-send-email-lamiaposta71@gmail.com> X-pstn-neptune: 0/0/0.00/0 X-pstn-levels: (S:86.16097/99.90000 CV:99.9000 FC:95.5390 LC:95.5390 R:95.9108 P:95.9108 M:97.0282 C:98.6951 ) X-pstn-settings: 2 (0.5000:0.0750) s cv GT3 gt2 gt1 r p m c X-pstn-addresses: from [db-null] Cc: davinci-linux-open-source@linux.davincidsp.com, linux-kernel@vger.kernel.org, Davide Ciminaghi X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: davinci-linux-open-source-bounces@linux.davincidsp.com Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com X-Greylist: Sender succeeded STARTTLS authentication, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Thu, 12 May 2011 17:13:53 +0000 (UTC) From: Davide Ciminaghi Signed-off-by: Davide Ciminaghi --- drivers/base/bus.c | 3 ++- include/linux/kobject.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/base/bus.c b/drivers/base/bus.c index 000e7b2..2134248 100644 --- a/drivers/base/bus.c +++ b/drivers/base/bus.c @@ -158,7 +158,8 @@ static const struct kset_uevent_ops bus_uevent_ops = { .filter = bus_uevent_filter, }; -static struct kset *bus_kset; +struct kset *bus_kset; +EXPORT_SYMBOL(bus_kset); #ifdef CONFIG_HOTPLUG diff --git a/include/linux/kobject.h b/include/linux/kobject.h index 8f6d121..456b20d 100644 --- a/include/linux/kobject.h +++ b/include/linux/kobject.h @@ -205,6 +205,8 @@ extern struct kobject *power_kobj; /* The global /sys/firmware/ kobject for people to chain off of */ extern struct kobject *firmware_kobj; +extern struct kset *bus_kset ; + #if defined(CONFIG_HOTPLUG) int kobject_uevent(struct kobject *kobj, enum kobject_action action); int kobject_uevent_env(struct kobject *kobj, enum kobject_action action,