Skip to content

Commit

Permalink
staging: mt7621-pci: use 'module_init' instead of 'arch_initcall'
Browse files Browse the repository at this point in the history
This driver has dependencies on mt7621-gpio and mt7621-pci-phy which
are init in later stages. Hence, when this driver is probed it is always
returning 'EPROBE_DEFER' and being initialized afterwards. Use function
'module_init' to just initialize later.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Sergio Paracuellos authored and Greg Kroah-Hartman committed Jun 21, 2019
1 parent 774dd15 commit 2e26e96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/mt7621-pci/pci-mt7621.c
Original file line number Diff line number Diff line change
Expand Up @@ -727,4 +727,4 @@ static int __init mt7621_pci_init(void)
return platform_driver_register(&mt7621_pci_driver);
}

arch_initcall(mt7621_pci_init);
module_init(mt7621_pci_init);

0 comments on commit 2e26e96

Please sign in to comment.