提交 9e5f7f9a 编写于 作者: G Greg Kroah-Hartman

firmware: export firmware_kset so that people can use that instead of the...

firmware: export firmware_kset so that people can use that instead of the braindead firmware_register interface

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: NGreg Kroah-Hartman <gregkh@suse.de>
上级 334c6307
......@@ -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)
{
......
......@@ -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 *);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册