Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

platform/x86: firmware_attributes_class: Drop lifecycle functions

There are no users left.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Armin Wolf <W_Armin@gmx.de>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Tested-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Link: https://lore.kernel.org/r/20250104-firmware-attributes-simplify-v1-6-949f9709e405@weissschuh.net
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>

authored by

Thomas Weißschuh and committed by
Ilpo Järvinen
6af39604 501d2f0e

-15
-13
drivers/platform/x86/firmware_attributes_class.c
··· 22 22 } 23 23 module_exit(fw_attributes_class_exit); 24 24 25 - int fw_attributes_class_get(const struct class **fw_attr_class) 26 - { 27 - *fw_attr_class = &firmware_attributes_class; 28 - return 0; 29 - } 30 - EXPORT_SYMBOL_GPL(fw_attributes_class_get); 31 - 32 - int fw_attributes_class_put(void) 33 - { 34 - return 0; 35 - } 36 - EXPORT_SYMBOL_GPL(fw_attributes_class_put); 37 - 38 25 MODULE_AUTHOR("Mark Pearson <markpearson@lenovo.com>"); 39 26 MODULE_DESCRIPTION("Firmware attributes class helper module"); 40 27 MODULE_LICENSE("GPL");
-2
drivers/platform/x86/firmware_attributes_class.h
··· 8 8 #include <linux/device/class.h> 9 9 10 10 extern const struct class firmware_attributes_class; 11 - int fw_attributes_class_get(const struct class **fw_attr_class); 12 - int fw_attributes_class_put(void); 13 11 14 12 #endif /* FW_ATTR_CLASS_H */