]> Git Repo - J-linux.git/commitdiff
memory: mtk-smi: fix module autoloading
authorKrzysztof Kozlowski <[email protected]>
Tue, 9 Apr 2024 20:46:15 +0000 (22:46 +0200)
committerKrzysztof Kozlowski <[email protected]>
Thu, 11 Apr 2024 06:22:26 +0000 (08:22 +0200)
Add MODULE_DEVICE_TABLE(), so the module could be properly autoloaded
based on the alias from of_device_id table.

Reviewed-by: Yong Wu <[email protected]>
Reviewed-by: AngeloGioacchino Del Regno <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Krzysztof Kozlowski <[email protected]>
drivers/memory/mtk-smi.c

index 572c7fbdcfd3a5b929eab83fa98865dd9226d2be..fbe52ecc0eca82ee92292c671ec702d835c2ffa8 100644 (file)
@@ -450,6 +450,7 @@ static const struct of_device_id mtk_smi_larb_of_ids[] = {
        {.compatible = "mediatek,mt8195-smi-larb", .data = &mtk_smi_larb_mt8195},
        {}
 };
+MODULE_DEVICE_TABLE(of, mtk_smi_larb_of_ids);
 
 static int mtk_smi_larb_sleep_ctrl_enable(struct mtk_smi_larb *larb)
 {
@@ -735,6 +736,7 @@ static const struct of_device_id mtk_smi_common_of_ids[] = {
        {.compatible = "mediatek,mt8365-smi-common", .data = &mtk_smi_common_mt8365},
        {}
 };
+MODULE_DEVICE_TABLE(of, mtk_smi_common_of_ids);
 
 static int mtk_smi_common_probe(struct platform_device *pdev)
 {
This page took 0.058293 seconds and 4 git commands to generate.