mirror of https://gitee.com/openkylin/linux.git
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:
parent
774dd15f81
commit
2e26e96672
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue