提交 bbca503b 编写于 作者: S Sudip Mukherjee 提交者: Greg Kroah-Hartman

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: NSudip Mukherjee <sudip.mukherjee@codethink.co.uk>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 fee26876
......@@ -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)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册