staging: mt7621-pci: use 'module_init' instead of 'arch_initcall'

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>
This commit is contained in:
Sergio Paracuellos 2019-06-21 08:15:17 +02:00 committed by Greg Kroah-Hartman
parent 774dd15f81
commit 2e26e96672
1 changed files with 1 additions and 1 deletions

View File

@ -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);