mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
phy: rockchip: naneng-combphy: Call rockchip_combphy_driver_init() early when CONFIG_INITCALL_ASYNC=y
dwc3_driver_init() depends on rockchip_combphy_driver_init() to init usb3phy. But dwc3_driver_init() and rockchip_combphy_driver_init() are both in the same module_init level. Fix this by moving rockchip_combphy_driver_init() to the fs_initcall level. Change-Id: I4e36da029f326f2a31d96db4175769b406bd0230 Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
@@ -1604,7 +1604,21 @@ static struct platform_driver rockchip_combphy_driver = {
|
||||
.of_match_table = rockchip_combphy_of_match,
|
||||
},
|
||||
};
|
||||
#ifdef CONFIG_INITCALL_ASYNC
|
||||
static int __init rockchip_combphy_driver_init(void)
|
||||
{
|
||||
return platform_driver_register(&rockchip_combphy_driver);
|
||||
}
|
||||
fs_initcall(rockchip_combphy_driver_init);
|
||||
|
||||
static void __exit rockchip_combphy_driver_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&rockchip_combphy_driver);
|
||||
}
|
||||
module_exit(rockchip_combphy_driver_exit);
|
||||
#else
|
||||
module_platform_driver(rockchip_combphy_driver);
|
||||
#endif
|
||||
|
||||
MODULE_DESCRIPTION("Rockchip NANENG COMBPHY driver");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
|
||||
Reference in New Issue
Block a user