diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2016-04-12 20:56:10 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-04-30 13:56:46 -0700 |
commit | bbca503b2ee000b5743a49c4995316cc499f44c6 (patch) | |
tree | 0c5b6c273840c6757365ec364eddd1b857d65a15 /drivers/parport | |
parent | fee268767ce8bfdb5389b84cd02ba7837b5350d5 (diff) | |
download | linux-bbca503b2ee000b5743a49c4995316cc499f44c6.tar.gz linux-bbca503b2ee000b5743a49c4995316cc499f44c6.tar.bz2 linux-bbca503b2ee000b5743a49c4995316cc499f44c6.zip |
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>
Diffstat (limited to 'drivers/parport')
-rw-r--r-- | drivers/parport/procfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |