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

Commit 12283647 authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

misc: qpnp-misc: change the initcall level for qpnp-misc driver



Change the initcall level of qpnp-misc driver from module_init()
to subsys_initcall() so that the misc devices can be available
earlier. This helps the clients to access the registers under
misc peripheral sooner without a probe deferral.

Change-Id: Ie5df2cb9cf6842c59ec6f00ac9123994111f207b
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent 89bfd053
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -342,7 +342,7 @@ static void __exit qpnp_misc_exit(void)
	return platform_driver_unregister(&qpnp_misc_driver);
}

module_init(qpnp_misc_init);
subsys_initcall(qpnp_misc_init);
module_exit(qpnp_misc_exit);

MODULE_DESCRIPTION(QPNP_MISC_DEV_NAME);