Skip to content

Commit 59ebc44

Browse files
committed
Merge tag 'pnp-4.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull PNP update from Rafael Wysocki: "One simple change to make the PNP core use device_initcall() instead of module_init() to run pnpbios_thread_init() (Paul Gortmaker)" * tag 'pnp-4.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: PNP: make pnpbios core explicitly non-modular
2 parents e663107 + 917c7fc commit 59ebc44

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)