Skip to content

Commit 1aab318

Browse files
krzkandersson
authored andcommitted
clk: qcom: fix module autoloading
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias from of_device_id table. Clocks are considered core components, so usually they are built-in, however these can be built and used as modules on some generic kernel. Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Link: https://lore.kernel.org/r/20240410155356.224098-1-krzk@kernel.org Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent 4cece76 commit 1aab318

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/clk/qcom/gcc-msm8917.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3278,6 +3278,7 @@ static const struct of_device_id gcc_msm8917_match_table[] = {
32783278
{ .compatible = "qcom,gcc-qm215", .data = &gcc_qm215_desc },
32793279
{},
32803280
};
3281+
MODULE_DEVICE_TABLE(of, gcc_msm8917_match_table);
32813282

32823283
static struct platform_driver gcc_msm8917_driver = {
32833284
.probe = gcc_msm8917_probe,

drivers/clk/qcom/gcc-msm8953.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4227,6 +4227,7 @@ static const struct of_device_id gcc_msm8953_match_table[] = {
42274227
{ .compatible = "qcom,gcc-msm8953" },
42284228
{},
42294229
};
4230+
MODULE_DEVICE_TABLE(of, gcc_msm8953_match_table);
42304231

42314232
static struct platform_driver gcc_msm8953_driver = {
42324233
.probe = gcc_msm8953_probe,

0 commit comments

Comments
 (0)