diff --git a/drivers/phy/rockchip/phy-rockchip-inno-dsidphy.c b/drivers/phy/rockchip/phy-rockchip-inno-dsidphy.c index bf366053cec2..4b76f8521b55 100644 --- a/drivers/phy/rockchip/phy-rockchip-inno-dsidphy.c +++ b/drivers/phy/rockchip/phy-rockchip-inno-dsidphy.c @@ -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 "); MODULE_DESCRIPTION("Innosilicon MIPI/LVDS/TTL Video Combo PHY driver");