From: Sudip Mukherjee Date: Tue, 12 Apr 2016 15:26:10 +0000 (+0530) Subject: parport: use subsys_initcall X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bbca503b2ee0;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/parport/procfs.c b/drivers/parport/procfs.c index c776333a68bc..74ed3e459a3e 100644 --- a/drivers/parport/procfs.c +++ b/drivers/parport/procfs.c @@ -617,5 +617,5 @@ static void __exit parport_default_proc_unregister (void) } #endif -module_init(parport_default_proc_register) +subsys_initcall(parport_default_proc_register) module_exit(parport_default_proc_unregister)