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

Commit b2a0e87c authored by Isaac J. Manjarres's avatar Isaac J. Manjarres
Browse files

soc: qcom: secure_buffer: Move to subsys_initcall



Move the secure buffer driver initialization to subsys_initcall
to avoid delaying the probe of drivers that depend on the
secure buffer driver when all of the drivers are builtin.

Change-Id: Ifdb1003c1c64df4371057528d1f1a0860e79c454
Signed-off-by: default avatarIsaac J. Manjarres <isaacm@codeaurora.org>
parent 11b286fb
Loading
Loading
Loading
Loading
+12 −1
Original line number Original line Diff line number Diff line
@@ -333,6 +333,17 @@ static struct platform_driver qcom_secure_buffer_driver = {
		.of_match_table = qcom_secure_buffer_of_match,
		.of_match_table = qcom_secure_buffer_of_match,
	},
	},
};
};
module_platform_driver(qcom_secure_buffer_driver);

static int __init qcom_secure_buffer_init(void)
{
	return platform_driver_register(&qcom_secure_buffer_driver);
}
subsys_initcall(qcom_secure_buffer_init);

static void __exit qcom_secure_buffer_exit(void)
{
	return platform_driver_unregister(&qcom_secure_buffer_driver);
}
module_exit(qcom_secure_buffer_exit);


MODULE_LICENSE("GPL v2");
MODULE_LICENSE("GPL v2");