drivers/firmware: make efi/esrt.c driver explicitly non-modular
PATCH 1/1 drivers/firmware: make efi/esrt.c driver explicitly non-modular
The Kconfig for this driver is currently hidden with:
config EFI_ESRT
bool
...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphaned, so that when reading the driver there is no doubt it is builtin-only.
Since module_init translates to device_initcall in the non-modular case, the init ordering remains unchanged with this commit.
We leave some tags like MODULE_AUTHOR for documentation purposes.
We don't replace module.h with init.h since the file already has that.
drivers/firmware/efi/esrt.c +3 -16
@@ -20,7 +20,6 @@#include <linux/kobject.h> #include <linux/list.h> #include <linux/memblock.h> -#include <linux/module.h> #include <linux/slab.h> #include <linux/types.h>
@@ -450,22 +449,10 @@ err: esrt =NULL ;return error; } +device_initcall (esrt_sysfs_init); -static void __exit esrt_sysfs_exit(void) -{ -pr_debug ("esrt-sysfs: unloading.\n" ); -cleanup_entry_list (); -kset_unregister (esrt_kset); -sysfs_remove_group (esrt_kobj, &esrt_attr_group); -kfree (esrt); - esrt =NULL ; -kobject_del (esrt_kobj); -kobject_put (esrt_kobj); -} - -module_init (esrt_sysfs_init); -module_exit (esrt_sysfs_exit); - +/* MODULE_AUTHOR("Peter Jones <[email protected]>"); MODULE_DESCRIPTION("EFI System Resource Table support"); MODULE_LICENSE("GPL"); +*/
Signature · 1 line
2.2.1
Quoted 12 lines · Paul Gortmaker
The
Kconfigfor this driver is currently hidden with:config
EFI_ESRT
bool...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphaned, so that when reading the driver there is no doubt it is builtin-only.
Since
module_inittranslates todevice_initcallin the non-modular case, the init ordering remains unchanged with this commit.
Quoted 8 lines
We leave some tags like
MODULE_AUTHORfor documentation purposes.We don't replace
module.hwithinit.hsince the file already has that.Cc Matt Fleming <[email protected]>Cc Peter Jones <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>
Looks good to me. I know Peter is on vacation right now, so I'm still expecting a response from him. In the meantime, I'll queue this up in the EFI 'next' branch. Thanks!
Signature · 1 line
Matt Fleming, Intel Open Source Technology Center
Quoted 17 lines · Matt Fleming
Quoted 16 lines · Paul Gortmaker
The
Kconfigfor this driver is currently hidden with:config
EFI_ESRT
bool...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphaned, so that when reading the driver there is no doubt it is builtin-only.
Since
module_inittranslates todevice_initcallin the non-modular case, the init ordering remains unchanged with this commit.We leave some tags like
MODULE_AUTHORfor documentation purposes.We don't replace
module.hwithinit.hsince the file already has that.
Quoted 8 lines
Quoted 4 lines
Cc Matt Fleming <[email protected]>Cc Peter Jones <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>Looks good to me. I know Peter is on vacation right now, so I'm still expecting a response from him. In the meantime, I'll queue this up in the EFI 'next' branch. Thanks!
Looks fine to me as well.
Signature · 1 line
Peter
Quoted 7 lines · Peter Jones
Quoted 4 lines · Matt Fleming
Looks good to me. I know Peter is on vacation right now, so I'm still expecting a response from him. In the meantime, I'll queue this up in the EFI 'next' branch. Thanks!
Looks fine to me as well.
Thanks Peter. May I add your ACK?
Signature · 1 line
Matt Fleming, Intel Open Source Technology Center
Peter Jones
Acked-byQuoted 10 lines · Matt Fleming
Quoted 7 lines · Peter Jones
Quoted 4 lines · Matt Fleming
Looks good to me. I know Peter is on vacation right now, so I'm still expecting a response from him. In the meantime, I'll queue this up in the EFI 'next' branch. Thanks!
Looks fine to me as well.
Thanks Peter. May I add your ACK?
Yes, sorry:
Signature · 1 line
Peter