]> git.karo-electronics.de Git - linux-beck.git/commitdiff
parport: use subsys_initcall
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Tue, 12 Apr 2016 15:26:10 +0000 (20:56 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Apr 2016 20:56:46 +0000 (13:56 -0700)
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>
drivers/parport/procfs.c

index c776333a68bccc6ef6c5131622ad39915d45c958..74ed3e459a3e8fd41d0e1015d3e845a35142d8db 100644 (file)
@@ -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)