Skip to content

Commit bf11908

Browse files
committed
memory: mtk-smi: fix module autoloading
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]>
1 parent 7a40c60 commit bf11908

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/memory/mtk-smi.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,7 @@ static const struct of_device_id mtk_smi_larb_of_ids[] = {
450450
{.compatible = "mediatek,mt8195-smi-larb", .data = &mtk_smi_larb_mt8195},
451451
{}
452452
};
453+
MODULE_DEVICE_TABLE(of, mtk_smi_larb_of_ids);
453454

454455
static int mtk_smi_larb_sleep_ctrl_enable(struct mtk_smi_larb *larb)
455456
{
@@ -735,6 +736,7 @@ static const struct of_device_id mtk_smi_common_of_ids[] = {
735736
{.compatible = "mediatek,mt8365-smi-common", .data = &mtk_smi_common_mt8365},
736737
{}
737738
};
739+
MODULE_DEVICE_TABLE(of, mtk_smi_common_of_ids);
738740

739741
static int mtk_smi_common_probe(struct platform_device *pdev)
740742
{

0 commit comments

Comments
 (0)