mirror of
https://github.com/torvalds/linux.git
synced 2026-06-10 23:53:52 +02:00
phy: rockchip: initcall csi2-dphy early when ROCKCHIP_THUNDER_BOOT_ISP=y
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com> Change-Id: I431f55560f2f87984ad92fd73f6ad4e0dd16e79e
This commit is contained in:
parent
6a0ab1e9fa
commit
3c8e72bfea
|
|
@ -946,7 +946,16 @@ static struct platform_driver rockchip_csi2_dphy_hw_driver = {
|
|||
.of_match_table = rockchip_csi2_dphy_hw_match_id,
|
||||
},
|
||||
};
|
||||
#if defined(CONFIG_VIDEO_ROCKCHIP_THUNDER_BOOT_ISP) && !defined(CONFIG_INITCALL_ASYNC)
|
||||
static int __init rockchip_csi2_dphy_hw_init(void)
|
||||
{
|
||||
return platform_driver_register(&rockchip_csi2_dphy_hw_driver);
|
||||
}
|
||||
|
||||
subsys_initcall(rockchip_csi2_dphy_hw_init);
|
||||
#else
|
||||
module_platform_driver(rockchip_csi2_dphy_hw_driver);
|
||||
#endif
|
||||
|
||||
MODULE_AUTHOR("Rockchip Camera/ISP team");
|
||||
MODULE_DESCRIPTION("Rockchip MIPI CSI2 DPHY HW driver");
|
||||
|
|
|
|||
|
|
@ -806,7 +806,16 @@ struct platform_driver rockchip_csi2_dphy_driver = {
|
|||
.of_match_table = rockchip_csi2_dphy_match_id,
|
||||
},
|
||||
};
|
||||
#if defined(CONFIG_VIDEO_ROCKCHIP_THUNDER_BOOT_ISP) && !defined(CONFIG_INITCALL_ASYNC)
|
||||
static int __init rockchip_csi2_dphy_init(void)
|
||||
{
|
||||
return platform_driver_register(&rockchip_csi2_dphy_driver);
|
||||
}
|
||||
|
||||
subsys_initcall(rockchip_csi2_dphy_init);
|
||||
#else
|
||||
module_platform_driver(rockchip_csi2_dphy_driver);
|
||||
#endif
|
||||
|
||||
MODULE_AUTHOR("Rockchip Camera/ISP team");
|
||||
MODULE_DESCRIPTION("Rockchip MIPI CSI2 DPHY driver");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user