From 9daabd4c25e89b7f1df53650b536b7388916d3ad Mon Sep 17 00:00:00 2001 From: Jordan Crouse Date: Thu, 31 Oct 2019 12:51:40 -0600 Subject: [PATCH] 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 --- drivers/interconnect/qcom/lahaina.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/interconnect/qcom/lahaina.c b/drivers/interconnect/qcom/lahaina.c index 2aa117a0a82c..7dd07d6e3eca 100644 --- a/drivers/interconnect/qcom/lahaina.c +++ b/drivers/interconnect/qcom/lahaina.c @@ -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");