drivers/acpi: make evged.c explicitly non-modular
PATCH 1/1 drivers/acpi: make evged.c explicitly non-modular
The Makefile/Kconfig currently controlling compilation of this code is:
Makefile:acpi-$(CONFIG_ACPI_REDUCED_HARDWARE_ONLY) += evged.o
drivers/acpi/Kconfig:config ACPI_REDUCED_HARDWARE_ONLYdrivers/acpi/Kconfig: bool "Hardware-reduced ACPI support only" if EXPERT
...meaning that it currently is not being built as a module by anyone.
Lets remove the couple traces of modularity so that when reading the code there is no doubt it is builtin-only.
Since module_platform_driver() uses the same init level priority as builtin_platform_driver() the init ordering remains unchanged with this commit.
The file wasn't explicitly including the module.h file but it did already have init.h so, unlike similar changes, this one has no header changes at all.
We also delete the MODULE_LICENSE tag since all that information is already contained at the top of the file in the comments.
Cc: Sinan Kaya <[email protected]>
c: "Rafael J. Wysocki" <[email protected]>
--- drivers/acpi/evged.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/acpi/evged.c +1 -3
@@ -151,6 +151,4 @@ static struct platform_driver ged_driver = { .acpi_match_table = ACPI_PTR(ged_acpi_ids), }, }; - -module_platform_driver (ged_driver); -MODULE_LICENSE ("GPL v2" ); +builtin_platform_driver (ged_driver);
Signature · 1 line
2.8.0
+Rafael,
drivers/acpi/evged.c static struct platform_driver ged_driver = { · line 154
Quoted 9 lines · Paul Gortmaker
The Makefile/Kconfig currently controlling compilation of this code is:
Makefile:acpi-$(CONFIG_ACPI_REDUCED_HARDWARE_ONLY) += evged.o
drivers/acpi/evged.c +1
-3- -module_platform_driver (ged_driver); -MODULE_LICENSE ("GPL v2" ); +builtin_platform_driver (ged_driver);
Thanks, it looks good to me. I realized Rafael was missing in your post. I added him here.
Signature · 3 lines
Sinan Kaya Qualcomm Technologies, Inc. on behalf of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
Quoted 7 lines · [Re: [PATCH] drivers/acpi: make evged.c explicitly non-modular] On 09/05/2016…
+Rafael,
Quoted 4 lines · Paul Gortmaker
The Makefile/Kconfig currently controlling compilation of this code is:
Makefile:acpi-$(CONFIG_ACPI_REDUCED_HARDWARE_ONLY) += evged.o
Quoted 8 lines
drivers/acpi/evged.c static struct platform_driver ged_driver = { · line 154
Quoted 5 lines
drivers/acpi/evged.c +1
-3- -module_platform_driver (ged_driver); -MODULE_LICENSE ("GPL v2" ); +builtin_platform_driver (ged_driver);Thanks, it looks good to me. I realized Rafael was missing in your post. I added him here.
Thanks for spotting that. It looks like I fat fingered his "Cc:" line into a "c:" at some point and I didn't notice his name was absent when git gave me the summary of recipients before hitting send. :-(
Would have been nice if git send-email had given me a warning, but I guess there are so many different non-stanadard headers out there now, it would be impossible to assume "c:" wasn't valid for someone....
P.
Quoted 18 lines · Paul Gortmaker
Quoted 7 lines · [Re: [PATCH] drivers/acpi: make evged.c explicitly non-modular] On 09/05/2016…
+Rafael,
Quoted 4 lines · Paul Gortmaker
The Makefile/Kconfig currently controlling compilation of this code is:
Makefile:acpi-$(CONFIG_ACPI_REDUCED_HARDWARE_ONLY) += evged.o
Quoted 8 lines
drivers/acpi/evged.c static struct platform_driver ged_driver = { · line 154
Quoted 5 lines
drivers/acpi/evged.c +1
-3- -module_platform_driver (ged_driver); -MODULE_LICENSE ("GPL v2" ); +builtin_platform_driver (ged_driver);Thanks, it looks good to me. I realized Rafael was missing in your post. I added him here.
Quoted 7 lines
Thanks for spotting that. It looks like I fat fingered his "Cc:" line into a "c:" at some point and I didn't notice his name was absent when git gave me the summary of recipients before hitting send. :-(
Would have been nice if git send-email had given me a warning, but I guess there are so many different non-stanadard headers out there now, it would be impossible to assume "c:" wasn't valid for someone....
No worries.
If it goes to [email protected], I can find it.
Patch applied, thanks!