Skip to content

Commit

Permalink
ACPI / GED: make evged.c explicitly non-modular
Browse files Browse the repository at this point in the history
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_ONLY
drivers/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.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Paul Gortmaker authored and Rafael J. Wysocki committed May 9, 2016
1 parent 628e35b commit 437014b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/acpi/evged.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 437014b

Please sign in to comment.