diff options
author | Konrad Dybcio <konrad.dybcio@linaro.org> | 2023-04-07 23:14:50 +0300 |
---|---|---|
committer | Georgi Djakov <djakov@kernel.org> | 2023-05-21 10:25:58 +0300 |
commit | 130733a10079102a78b51bf19bf4e4fa4d119c67 (patch) | |
tree | 1b91d15e2bd43799245e16b488788382ac312c4e /drivers/interconnect/qcom/msm8996.c | |
parent | 1ff7aedcdcdd4fe02201269ab428b09491e5cf6e (diff) | |
download | linux-130733a10079102a78b51bf19bf4e4fa4d119c67.tar.xz |
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>
Diffstat (limited to 'drivers/interconnect/qcom/msm8996.c')
-rw-r--r-- | drivers/interconnect/qcom/msm8996.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/drivers/interconnect/qcom/msm8996.c b/drivers/interconnect/qcom/msm8996.c index dc9959a87df2..20340fb62fe6 100644 --- a/drivers/interconnect/qcom/msm8996.c +++ b/drivers/interconnect/qcom/msm8996.c @@ -2108,7 +2108,17 @@ static struct platform_driver qnoc_driver = { .sync_state = icc_sync_state, } }; -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_AUTHOR("Yassine Oudjana <y.oudjana@protonmail.com>"); MODULE_DESCRIPTION("Qualcomm MSM8996 NoC driver"); |