From 6af39604c788d9df0ca697bab603202cf74c1a8c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Sat, 4 Jan 2025 00:05:14 +0100 Subject: [PATCH] platform/x86: firmware_attributes_class: Drop lifecycle functions MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit There are no users left. Signed-off-by: Thomas Weißschuh Reviewed-by: Armin Wolf Reviewed-by: Mario Limonciello Reviewed-by: Mark Pearson Tested-by: Mark Pearson Link: https://lore.kernel.org/r/20250104-firmware-attributes-simplify-v1-6-949f9709e405@weissschuh.net Reviewed-by: Ilpo Järvinen Signed-off-by: Ilpo Järvinen --- drivers/platform/x86/firmware_attributes_class.c | 13 ------------- drivers/platform/x86/firmware_attributes_class.h | 2 -- 2 files changed, 15 deletions(-) diff --git a/drivers/platform/x86/firmware_attributes_class.c b/drivers/platform/x86/firmware_attributes_class.c index 87672c49e86a..736e96c186d9 100644 --- a/drivers/platform/x86/firmware_attributes_class.c +++ b/drivers/platform/x86/firmware_attributes_class.c @@ -22,19 +22,6 @@ static __exit void fw_attributes_class_exit(void) } module_exit(fw_attributes_class_exit); -int fw_attributes_class_get(const struct class **fw_attr_class) -{ - *fw_attr_class = &firmware_attributes_class; - return 0; -} -EXPORT_SYMBOL_GPL(fw_attributes_class_get); - -int fw_attributes_class_put(void) -{ - return 0; -} -EXPORT_SYMBOL_GPL(fw_attributes_class_put); - MODULE_AUTHOR("Mark Pearson "); MODULE_DESCRIPTION("Firmware attributes class helper module"); MODULE_LICENSE("GPL"); diff --git a/drivers/platform/x86/firmware_attributes_class.h b/drivers/platform/x86/firmware_attributes_class.h index ef6c3764a834..d27abe54fcf9 100644 --- a/drivers/platform/x86/firmware_attributes_class.h +++ b/drivers/platform/x86/firmware_attributes_class.h @@ -8,7 +8,5 @@ #include extern const struct class firmware_attributes_class; -int fw_attributes_class_get(const struct class **fw_attr_class); -int fw_attributes_class_put(void); #endif /* FW_ATTR_CLASS_H */ -- 2.50.1