firmware: export firmware_kset so that people can use that instead of the braindead...
authorGreg Kroah-Hartman <gregkh@suse.de>
Fri, 2 Nov 2007 20:20:40 +0000 (13:20 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 25 Jan 2008 04:40:19 +0000 (20:40 -0800)
Needed for future firmware subsystem cleanups.

In the end, the firmware_register/unregister functions will be deleted
entirely, but we need this symbol so that subsystems can migrate over.

Cc: Kay Sievers <kay.sievers@vrfy.org>
Cc: Matt Domsch <Matt_Domsch@dell.com>
Cc: Matt Tolentino <matthew.e.tolentino@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/firmware.c
include/linux/kobject.h

index 6a4e494042f6269aacf51baa31fe1a5a25858080..c7f635b11dfd12539374121d17dc75ca3011055e 100644 (file)
@@ -15,7 +15,8 @@
 
 #include "base.h"
 
-static struct kset *firmware_kset;
+struct kset *firmware_kset;
+EXPORT_SYMBOL_GPL(firmware_kset);
 
 int firmware_register(struct kset *s)
 {
index e694261de90f09a985c99f9d0c0db44b3eebde93..29dc444e3361b99659c892bd9d6f7f4f6ccc9e42 100644 (file)
@@ -210,6 +210,8 @@ extern struct kset *kernel_kset;
 extern struct kobject *hypervisor_kobj;
 /* The global /sys/power/ kset for people to chain off of */
 extern struct kset *power_kset;
+/* The global /sys/firmware/ kset for people to chain off of */
+extern struct kset *firmware_kset;
 
 extern int __must_check subsystem_register(struct kset *);
 extern void subsystem_unregister(struct kset *);