From: Paul Gortmaker Date: Sun, 3 Jul 2016 18:20:15 +0000 (-0400) Subject: PNP: make pnpbios core explicitly non-modular X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=917c7fc264abb9c470486b157bc7252e53f68fbb;p=linux-beck.git 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 Signed-off-by: Rafael J. Wysocki --- 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 @@ */ #include -#include #include #include #include @@ -587,6 +586,6 @@ static int __init pnpbios_thread_init(void) } /* Start the kernel thread later: */ -module_init(pnpbios_thread_init); +device_initcall(pnpbios_thread_init); EXPORT_SYMBOL(pnpbios_protocol);