diff options
Diffstat (limited to 'drivers/base/firmware.c')
-rw-r--r-- | drivers/base/firmware.c | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/drivers/base/firmware.c b/drivers/base/firmware.c index 90c862932169..113815556809 100644 --- a/drivers/base/firmware.c +++ b/drivers/base/firmware.c | |||
@@ -3,11 +3,11 @@ | |||
3 | * | 3 | * |
4 | * Copyright (c) 2002-3 Patrick Mochel | 4 | * Copyright (c) 2002-3 Patrick Mochel |
5 | * Copyright (c) 2002-3 Open Source Development Labs | 5 | * Copyright (c) 2002-3 Open Source Development Labs |
6 | * Copyright (c) 2007 Greg Kroah-Hartman <gregkh@suse.de> | ||
7 | * Copyright (c) 2007 Novell Inc. | ||
6 | * | 8 | * |
7 | * This file is released under the GPLv2 | 9 | * This file is released under the GPLv2 |
8 | * | ||
9 | */ | 10 | */ |
10 | |||
11 | #include <linux/kobject.h> | 11 | #include <linux/kobject.h> |
12 | #include <linux/module.h> | 12 | #include <linux/module.h> |
13 | #include <linux/init.h> | 13 | #include <linux/init.h> |
@@ -15,23 +15,13 @@ | |||
15 | 15 | ||
16 | #include "base.h" | 16 | #include "base.h" |
17 | 17 | ||
18 | static decl_subsys(firmware, NULL, NULL); | 18 | struct kobject *firmware_kobj; |
19 | 19 | EXPORT_SYMBOL_GPL(firmware_kobj); | |
20 | int firmware_register(struct kset *s) | ||
21 | { | ||
22 | kobj_set_kset_s(s, firmware_subsys); | ||
23 | return subsystem_register(s); | ||
24 | } | ||
25 | |||
26 | void firmware_unregister(struct kset *s) | ||
27 | { | ||
28 | subsystem_unregister(s); | ||
29 | } | ||
30 | 20 | ||
31 | int __init firmware_init(void) | 21 | int __init firmware_init(void) |
32 | { | 22 | { |
33 | return subsystem_register(&firmware_subsys); | 23 | firmware_kobj = kobject_create_and_add("firmware", NULL); |
24 | if (!firmware_kobj) | ||
25 | return -ENOMEM; | ||
26 | return 0; | ||
34 | } | 27 | } |
35 | |||
36 | EXPORT_SYMBOL_GPL(firmware_register); | ||
37 | EXPORT_SYMBOL_GPL(firmware_unregister); | ||