Skip to content

Commit

Permalink
parport: use subsys_initcall
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
sudipm-mukherjee authored and gregkh committed Apr 30, 2016
1 parent fee2687 commit bbca503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/parport/procfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit bbca503

Please sign in to comment.