Skip to content

Commit

Permalink
staging: irda: fix init level for irda core
Browse files Browse the repository at this point in the history
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 <fengguang.wu@intel.com>
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Greg KH authored and David S. Miller committed Aug 30, 2017
1 parent d081a16 commit 0da93d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/irda/net/irmod.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 <dagb@cs.uit.no> & Jean Tourrilhes <jt@hpl.hp.com>");
Expand Down

0 comments on commit 0da93d2

Please sign in to comment.