mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
i2c: rk3x: Call rk3x_i2c_driver_init() early when CONFIG_ROCKCHIP_THUNDER_BOOT=y
Change-Id: Ia723fcbb4bc5cf65843d343645b6ace538a536db Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
@@ -1383,7 +1383,21 @@ static struct platform_driver rk3x_i2c_driver = {
|
||||
},
|
||||
};
|
||||
|
||||
#ifdef CONFIG_ROCKCHIP_THUNDER_BOOT
|
||||
static int __init rk3x_i2c_driver_init(void)
|
||||
{
|
||||
return platform_driver_register(&rk3x_i2c_driver);
|
||||
}
|
||||
subsys_initcall_sync(rk3x_i2c_driver_init);
|
||||
|
||||
static void __exit rk3x_i2c_driver_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&rk3x_i2c_driver);
|
||||
}
|
||||
module_exit(rk3x_i2c_driver_exit);
|
||||
#else
|
||||
module_platform_driver(rk3x_i2c_driver);
|
||||
#endif
|
||||
|
||||
MODULE_DESCRIPTION("Rockchip RK3xxx I2C Bus driver");
|
||||
MODULE_AUTHOR("Max Schwarz <max.schwarz@online.de>");
|
||||
|
||||
Reference in New Issue
Block a user