Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc46387c authored by Prudhvi Yarlagadda's avatar Prudhvi Yarlagadda
Browse files

i2c-msm-v2: Make init call as module_init for i2c driver



Make init call as module_init for i2c driver instead of
subsys_initcall. This is done to prevent clock off which
happens in i2c probe, as the same clock is shared by uart
(early console). Early console doesn't have a mechanism to
vote for clocks so these clocks should be on till kernel
console driver is probed which is happening as a module_init
call.

Change-Id: I10c6e4f0c5227db97bd5d31dc91c3ba4b9a74038
Signed-off-by: default avatarPrudhvi Yarlagadda <pyarlaga@codeaurora.org>
parent 15c00787
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2014-2019, The Linux Foundation. All rights reserved.
/* Copyright (c) 2014-2020, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -3037,7 +3037,7 @@ static int i2c_msm_init(void)
{
	return platform_driver_register(&i2c_msm_driver);
}
subsys_initcall(i2c_msm_init);
module_init(i2c_msm_init);

static void i2c_msm_exit(void)
{