MOXA linux-2.6.x / linux-2.6.9-uc0 from sdlinux-moxaart.tgz
[linux-2.6.9-moxart.git] / drivers / base / firmware.c
blob0cff0498ea8b0398d3018d2bdf63ddfe83cb177e
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(firmware_register);
34 EXPORT_SYMBOL(firmware_unregister);