From: Greg KH Date: Wed, 30 Aug 2017 11:16:49 +0000 (+0200) Subject: staging: irda: fix init level for irda core X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0da93d2ebb5d198a4601bd5ad7695f3c6fd36062;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: irda: fix init level for irda core When moving the IRDA code out of net/ into drivers/staging/irda/net, the link order changes when IRDA is built into the kernel. That causes a kernel crash at boot time as netfilter isn't initialized yet. To fix this, move the init call level of the irda core to be device_initcall() as the link order keeps this being initialized at the correct time. Reported-by: kernel test robot Reported-by: Geert Uytterhoeven Signed-off-by: Greg Kroah-Hartman Signed-off-by: David S. Miller --- diff --git a/drivers/staging/irda/net/irmod.c b/drivers/staging/irda/net/irmod.c index c5e35b85c477..4319f4ff66b0 100644 --- a/drivers/staging/irda/net/irmod.c +++ b/drivers/staging/irda/net/irmod.c @@ -190,7 +190,7 @@ static void __exit irda_cleanup(void) * * Jean II */ -subsys_initcall(irda_init); +device_initcall(irda_init); module_exit(irda_cleanup); MODULE_AUTHOR("Dag Brattli & Jean Tourrilhes ");