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

Commit 8d38dd82 authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

regulator: fan53555: change the initcall level for fan53555 regulator



Change the initcall level of fan53555 regulator driver from
module_init() to subsys_initcall() so that the fan53555 regulator
devices can be available earlier for other clients.

CRs-Fixed: 991249
Change-Id: I4f3f4267396ec2b549235a70764d83ce86dcf38d
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent ee833ce5
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -465,7 +465,17 @@ static struct i2c_driver fan53555_regulator_driver = {
	.id_table = fan53555_id,
};

module_i2c_driver(fan53555_regulator_driver);
static int __init fan53555_init(void)
{
	return i2c_add_driver(&fan53555_regulator_driver);
}
subsys_initcall(fan53555_init);

static void __exit fan53555_exit(void)
{
	i2c_del_driver(&fan53555_regulator_driver);
}
module_exit(fan53555_exit);

MODULE_AUTHOR("Yunfan Zhang <yfzhang@marvell.com>");
MODULE_DESCRIPTION("FAN53555 regulator driver");