Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

parport: use subsys_initcall

The drivers which depends on parport may sometimes try to iniitialize
and register with parport bus even before parport has actually
registered with the device layer.
The simplest solution is to mark the init function as subsys_initcall()
and load the parport before the other drivers loads.

Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Sudip Mukherjee and committed by
Greg Kroah-Hartman
bbca503b fee26876

+1 -1
+1 -1
drivers/parport/procfs.c
··· 617 617 } 618 618 #endif 619 619 620 - module_init(parport_default_proc_register) 620 + subsys_initcall(parport_default_proc_register) 621 621 module_exit(parport_default_proc_unregister)