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

Commit 29e4256f authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy Committed by Ankit Sharma
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: I3ff27ee552e088e25ef08ff7e859f6c07235eae1
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent 045b1fba
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -339,7 +339,7 @@ static void __exit qpnp_misc_exit(void)
	return spmi_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);