Skip to content

Commit 130733a

Browse files
konradybcioGeorgi Djakov
authored andcommitted
interconnect: qcom: msm8996: Promote to core_initcall
The interconnect driver is (or soon will be) vital to many other devices, as it's not a given that the bootloader will set up enough bandwidth for us or that the values we come into are reasonable. Promote the driver to core_initcall to ensure the consumers (i.e. most "meaningful" parts of the SoC) can probe without deferrals. Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> Link: https://lore.kernel.org/r/20230228-topic-qos-v8-8-ee696a2c15a9@linaro.org Signed-off-by: Georgi Djakov <djakov@kernel.org>
1 parent 1ff7aed commit 130733a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

drivers/interconnect/qcom/msm8996.c

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2108,7 +2108,17 @@ static struct platform_driver qnoc_driver = {
21082108
.sync_state = icc_sync_state,
21092109
}
21102110
};
2111-
module_platform_driver(qnoc_driver);
2111+
static int __init qnoc_driver_init(void)
2112+
{
2113+
return platform_driver_register(&qnoc_driver);
2114+
}
2115+
core_initcall(qnoc_driver_init);
2116+
2117+
static void __exit qnoc_driver_exit(void)
2118+
{
2119+
platform_driver_unregister(&qnoc_driver);
2120+
}
2121+
module_exit(qnoc_driver_exit);
21122122

21132123
MODULE_AUTHOR("Yassine Oudjana <y.oudjana@protonmail.com>");
21142124
MODULE_DESCRIPTION("Qualcomm MSM8996 NoC driver");

0 commit comments

Comments
 (0)