diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2016-07-03 14:20:15 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-07-05 16:37:25 -0400 |
commit | 917c7fc264abb9c470486b157bc7252e53f68fbb (patch) | |
tree | ea40cac3a299244b34d11205e5d021acd8b8ea04 /drivers/pnp/pnpbios/core.c | |
parent | a99cde438de0c4c0cecc1d1af1a55a75b10bfdef (diff) |
PNP: make pnpbios core explicitly non-modular
The Kconfig currently controlling compilation of this code is:
config PNPBIOS
bool "Plug and Play BIOS support"
...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
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.
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/pnp/pnpbios/core.c')
-rw-r--r-- | drivers/pnp/pnpbios/core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pnp/pnpbios/core.c b/drivers/pnp/pnpbios/core.c index 81603d99082b..bedb361746a0 100644 --- a/drivers/pnp/pnpbios/core.c +++ b/drivers/pnp/pnpbios/core.c | |||
@@ -46,7 +46,6 @@ | |||
46 | */ | 46 | */ |
47 | 47 | ||
48 | #include <linux/types.h> | 48 | #include <linux/types.h> |
49 | #include <linux/module.h> | ||
50 | #include <linux/init.h> | 49 | #include <linux/init.h> |
51 | #include <linux/linkage.h> | 50 | #include <linux/linkage.h> |
52 | #include <linux/kernel.h> | 51 | #include <linux/kernel.h> |
@@ -587,6 +586,6 @@ static int __init pnpbios_thread_init(void) | |||
587 | } | 586 | } |
588 | 587 | ||
589 | /* Start the kernel thread later: */ | 588 | /* Start the kernel thread later: */ |
590 | module_init(pnpbios_thread_init); | 589 | device_initcall(pnpbios_thread_init); |
591 | 590 | ||
592 | EXPORT_SYMBOL(pnpbios_protocol); | 591 | EXPORT_SYMBOL(pnpbios_protocol); |