mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
phy/rockchip: inno-dsidphy: Call inno_dsidphy_driver_init() early when CONFIG_INITCALL_ASYNC=y
Moving inno_dsidphy_driver_init() to the fs_initcall level. Before rockchip_drm_init(). Change-Id: I09aa277f2af80107aa00b8da69ff919be02d2452 Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
@@ -1166,7 +1166,21 @@ static struct platform_driver inno_dsidphy_driver = {
|
||||
.probe = inno_dsidphy_probe,
|
||||
.remove = inno_dsidphy_remove,
|
||||
};
|
||||
#ifdef CONFIG_INITCALL_ASYNC
|
||||
static int __init inno_dsidphy_driver_init(void)
|
||||
{
|
||||
return platform_driver_register(&inno_dsidphy_driver);
|
||||
}
|
||||
fs_initcall(inno_dsidphy_driver_init);
|
||||
|
||||
static void __exit inno_dsidphy_driver_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&inno_dsidphy_driver);
|
||||
}
|
||||
module_exit(inno_dsidphy_driver_exit);
|
||||
#else
|
||||
module_platform_driver(inno_dsidphy_driver);
|
||||
#endif
|
||||
|
||||
MODULE_AUTHOR("Wyon Bi <bivvy.bi@rock-chips.com>");
|
||||
MODULE_DESCRIPTION("Innosilicon MIPI/LVDS/TTL Video Combo PHY driver");
|
||||
|
||||
Reference in New Issue
Block a user