interconnect: Move Lahaina interconnect driver to core_initcall

The interconnect drivers are essential to nearly every leaf driver and
subcomponenent in the SoC. Move the lahaina icc driver to core_initcall
so it is available to the dependent drivers when everybody is built in.

Change-Id: Ic0dedbad05673b756d7971ca8166919f3418aed0
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
This commit is contained in:
Jordan Crouse 2019-10-31 12:51:40 -06:00
commit 9daabd4c25

View file

@ -807,7 +807,18 @@ static struct platform_driver qnoc_driver = {
.of_match_table = qnoc_of_match,
},
};
module_platform_driver(qnoc_driver);
static int __init qnoc_driver_init(void)
{
return platform_driver_register(&qnoc_driver);
}
core_initcall(qnoc_driver_init);
static void __exit qnoc_driver_exit(void)
{
platform_driver_unregister(&qnoc_driver);
}
module_exit(qnoc_driver_exit);
MODULE_DESCRIPTION("Lahaina NoC driver");
MODULE_LICENSE("GPL v2");