Skip to content

Commit 917c7fc

Browse files
Paul Gortmakerrafaeljw
authored andcommitted
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>
1 parent a99cde4 commit 917c7fc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/pnp/pnpbios/core.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
*/
4747

4848
#include <linux/types.h>
49-
#include <linux/module.h>
5049
#include <linux/init.h>
5150
#include <linux/linkage.h>
5251
#include <linux/kernel.h>
@@ -587,6 +586,6 @@ static int __init pnpbios_thread_init(void)
587586
}
588587

589588
/* Start the kernel thread later: */
590-
module_init(pnpbios_thread_init);
589+
device_initcall(pnpbios_thread_init);
591590

592591
EXPORT_SYMBOL(pnpbios_protocol);

0 commit comments

Comments
 (0)