Skip to content

Commit

Permalink
PNP: make pnpbios core explicitly non-modular
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
  • Loading branch information
Paul Gortmaker authored and rafaeljw committed Jul 5, 2016
1 parent a99cde4 commit 917c7fc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/pnp/pnpbios/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
*/

#include <linux/types.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/linkage.h>
#include <linux/kernel.h>
Expand Down Expand Up @@ -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);

0 comments on commit 917c7fc

Please sign in to comment.