[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <201105122128.54172.rjw@sisk.pl>
Date: Thu, 12 May 2011 21:28:53 +0200
From: "Rafael J. Wysocki" <rjw@...k.pl>
To: Raffaele Recalcati <lamiaposta71@...il.com>
Cc: linux-pm@...ts.linux-foundation.org,
davinci-linux-open-source@...ux.davincidsp.com,
linux-kernel@...r.kernel.org,
Davide Ciminaghi <ciminaghi@...dd.com>
Subject: Re: [PATCH 1/4] export bus_kset
On Thursday, May 12, 2011, Raffaele Recalcati wrote:
> From: Davide Ciminaghi <ciminaghi@...dd.com>
Please explain why you need to export it, what the alternatives are and
why you think this approach is better than the alternatives.
Thanks,
Rafael
> Signed-off-by: Davide Ciminaghi <ciminaghi@...dd.com>
> ---
> 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,
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists