firmware.c 703 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * firmware.c - firmware subsystem hoohaw.
  3. *
  4. * Copyright (c) 2002-3 Patrick Mochel
  5. * Copyright (c) 2002-3 Open Source Development Labs
  6. *
  7. * This file is released under the GPLv2
  8. *
  9. */
  10. #include <linux/kobject.h>
  11. #include <linux/module.h>
  12. #include <linux/init.h>
  13. #include <linux/device.h>
  14. #include "base.h"
  15. static decl_subsys(firmware, NULL, NULL);
  16. int firmware_register(struct kset *s)
  17. {
  18. kobj_set_kset_s(s, firmware_subsys);
  19. return subsystem_register(s);
  20. }
  21. void firmware_unregister(struct kset *s)
  22. {
  23. subsystem_unregister(s);
  24. }
  25. int __init firmware_init(void)
  26. {
  27. return subsystem_register(&firmware_subsys);
  28. }
  29. EXPORT_SYMBOL_GPL(firmware_register);
  30. EXPORT_SYMBOL_GPL(firmware_unregister);