forked from Minki/linux
staging: mt7621-pci-phy: use 'module_init' instead of 'arch_initcall'
Init driver as 'arch_initcall()' does not work. It causes phy_create()
to be called before the phy module is initialized, so 'phy_class' is NULL,
the new phy isn't placed in the right class, and it cannot be found.
Change to 'module_init()' which works properly in this case.
Fixes: 00981d31d6
: staging: mt7621-pci-phy: add new driver for phy part of mt7621-pci
Reported-by: NeilBrown <neil@brown.name>
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ca87a3bf73
commit
766becee70
@ -380,7 +380,7 @@ static int __init mt7621_pci_phy_drv_init(void)
|
||||
return platform_driver_register(&mt7621_pci_phy_driver);
|
||||
}
|
||||
|
||||
arch_initcall(mt7621_pci_phy_drv_init);
|
||||
module_init(mt7621_pci_phy_drv_init);
|
||||
|
||||
MODULE_AUTHOR("Sergio Paracuellos <sergio.paracuellos@gmail.com>");
|
||||
MODULE_DESCRIPTION("MediaTek MT7621 PCIe PHY driver");
|
||||
|
Loading…
Reference in New Issue
Block a user