firmware.c 670 B

12345678910111213141516171819202122232425262728293031323334
  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. static decl_subsys(firmware, NULL, NULL);
  14. int firmware_register(struct subsystem * s)
  15. {
  16. kset_set_kset_s(s, firmware_subsys);
  17. return subsystem_register(s);
  18. }
  19. void firmware_unregister(struct subsystem * s)
  20. {
  21. subsystem_unregister(s);
  22. }
  23. int __init firmware_init(void)
  24. {
  25. return subsystem_register(&firmware_subsys);
  26. }
  27. EXPORT_SYMBOL_GPL(firmware_register);
  28. EXPORT_SYMBOL_GPL(firmware_unregister);