Skip to content

Commit

Permalink
firmware: export firmware_kset so that people can use that instead of…
Browse files Browse the repository at this point in the history
… 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: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Greg Kroah-Hartman committed Jan 25, 2008
1 parent 334c630 commit 9e5f7f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/base/firmware.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 2 additions & 0 deletions include/linux/kobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 *);
Expand Down

0 comments on commit 9e5f7f9

Please sign in to comment.