| 1 | |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 | #include <linux/module.h>
|
| 6 | #include <linux/firmware_attributes.h>
|
| 7 |
|
| 8 | const struct class firmware_attributes_class = {
|
| 9 | .name = "firmware-attributes",
|
| 10 | };
|
| 11 | EXPORT_SYMBOL_GPL(firmware_attributes_class);
|
| 12 |
|
| 13 | static __init int fw_attributes_class_init(void)
|
| 14 | {
|
| 15 | return class_register(&firmware_attributes_class);
|
| 16 | }
|
| 17 | module_init(fw_attributes_class_init);
|
| 18 |
|
| 19 | static __exit void fw_attributes_class_exit(void)
|
| 20 | {
|
| 21 | class_unregister(&firmware_attributes_class);
|
| 22 | }
|
| 23 | module_exit(fw_attributes_class_exit);
|
| 24 |
|
| 25 | MODULE_AUTHOR("Mark Pearson <[email protected]>");
|
| 26 | MODULE_DESCRIPTION("Firmware attributes class helper module");
|
| 27 | MODULE_LICENSE("GPL");
|