Linux-2.6.12-rc2
[linux-2.6/next.git] / drivers / base / firmware.c
blob88ab044932f2a13a3ac18d9b049807bb4a636278
1 /*
2 * firmware.c - firmware subsystem hoohaw.
4 * Copyright (c) 2002-3 Patrick Mochel
5 * Copyright (c) 2002-3 Open Source Development Labs
7 * This file is released under the GPLv2
9 */
11 #include <linux/kobject.h>
12 #include <linux/module.h>
13 #include <linux/init.h>
15 static decl_subsys(firmware, NULL, NULL);
17 int firmware_register(struct subsystem * s)
19 kset_set_kset_s(s, firmware_subsys);
20 return subsystem_register(s);
23 void firmware_unregister(struct subsystem * s)
25 subsystem_unregister(s);
28 int __init firmware_init(void)
30 return subsystem_register(&firmware_subsys);
33 EXPORT_SYMBOL_GPL(firmware_register);
34 EXPORT_SYMBOL_GPL(firmware_unregister);